diff --git a/src/pyflask/app.py b/src/pyflask/app.py index 7711a7a97..28b0f8a30 100644 --- a/src/pyflask/app.py +++ b/src/pyflask/app.py @@ -139,10 +139,10 @@ def get(self): ) log_handler.setFormatter(log_formatter) - flask_app.logger.addHandler(log_handler) - flask_app.logger.setLevel(DEBUG) + api.logger.addHandler(log_handler) + api.logger.setLevel(DEBUG) - flask_app.logger.info(f"Logging to {LOG_FILE_PATH}") + api.logger.info(f"Logging to {LOG_FILE_PATH}") # Run the server api.logger.info(f"Starting server on port {port}")