Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Boren committed Jun 23, 2023
1 parent 4ef141b commit a3a41fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions meadstatsapi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@

app = Flask(__name__, instance_relative_config=True)

gunicorn_logger = logging.getLogger("gunicorn.error")
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)
# Enable info logging
logging.basicConfig(level=logging.INFO)

# gunicorn_logger = logging.getLogger("gunicorn.error")
# app.logger.handlers = gunicorn_logger.handlers
# app.logger.setLevel(gunicorn_logger.level)

# Load config

Expand Down

0 comments on commit a3a41fb

Please sign in to comment.