06/01 Add teller response log

This commit is contained in:
2026-06-01 09:46:56 -04:00
parent 95d04c6058
commit 947176f133
3 changed files with 63 additions and 15 deletions
+9
View File
@@ -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)