From 12c66c6a2ee0a8ca112cf1fdecc040298dc52fdd Mon Sep 17 00:00:00 2001 From: Johannes Zumthurm <nimro27@gmx.net> Date: Sat, 16 Nov 2024 20:18:32 +0100 Subject: [PATCH] I love python --- amivapi/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amivapi/bootstrap.py b/amivapi/bootstrap.py index 2cb15ce..b744a30 100644 --- a/amivapi/bootstrap.py +++ b/amivapi/bootstrap.py @@ -75,7 +75,7 @@ def create_app(config_file=None, **kwargs): # Specified path > environment var > default path; abspath for better log user_config = abspath(config_file or getenv('AMIVAPI_CONFIG', 'config.py')) - app.logger.info('This is the user_config path: ' + user_config) + my_info = 'This is the user_config path: ' + user_config try: config.from_pyfile(user_config) config_status = "Config loaded: %s" % user_config @@ -92,6 +92,7 @@ def create_app(config_file=None, **kwargs): validator=ValidatorAMIV) app.logger.setLevel(app.config.get('LOG_LEVEL') or logging.INFO) app.logger.info(config_status) + app.logger.info(my_info) # Set up error logging with sentry init_sentry(app) -- GitLab