06/01 Add teller response log
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import logging
|
||||
import os
|
||||
from flask import Flask
|
||||
from app.config import config
|
||||
@@ -13,6 +14,14 @@ def create_app(config_name=None):
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(config[config_name])
|
||||
|
||||
# Ensure app-level loggers (services, routes) emit INFO+ to stderr/Gunicorn
|
||||
if not app.debug and not logging.root.handlers:
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s %(levelname)s %(name)s: %(message)s',
|
||||
)
|
||||
logging.getLogger('app').setLevel(logging.INFO)
|
||||
|
||||
db.init_app(app)
|
||||
login_manager.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
|
||||
Reference in New Issue
Block a user