Commit b65cf182 authored by David Mendez's avatar David Mendez
Browse files

Test App logging

parent 5c1ca800
......@@ -31,6 +31,8 @@ def create_app():
flask_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = RUN_CONFIG.get('sql_alchemy').get('track_modifications')
flask_app.config['SECRET_KEY'] = RUN_CONFIG.get('server_secret_key')
set_up_app_logger(flask_app)
authorizations = {
'jobKey': {
'type': 'apiKey',
......@@ -69,7 +71,6 @@ def create_app():
record_download_namespace, submit_download_namespace]:
api.add_namespace(namespace)
set_up_app_logger(flask_app)
return flask_app
def set_up_app_logger(flask_app):
......@@ -79,6 +80,7 @@ def set_up_app_logger(flask_app):
"""
print('LOGGING: ')
flask_app.logger.setLevel(20)
flask_app.logger.debug('this is a DEBUG message')
flask_app.logger.info('this is an INFO message')
......
......@@ -2,6 +2,7 @@
Module that handles the configuration of the app
"""
import os
import logging
from pathlib import Path
import hashlib
from enum import Enum
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment