Skip to content
Snippets Groups Projects
Commit 12c66c6a authored by Johannes Zumthurm's avatar Johannes Zumthurm
Browse files

I love python

parent d79dd566
No related branches found
No related tags found
1 merge request!677Gitlab ci
Pipeline #287444 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment