diff --git a/server.py b/server.py index 674e17c..acd0b79 100644 --- a/server.py +++ b/server.py @@ -14,9 +14,10 @@ from logging.config import dictConfig COLOR = os.environ["COLOR"].replace('"', '').lower() COLOR_NAV = COLOR+" darken-1" COLOR_BTN = COLOR+" darken-3" -DEBUG_STATE = False AUTH_TYPE = os.environ["AUTH_TYPE"].replace('"', '').lower() LOG_LEVEL = os.environ["LOG_LEVEL"].replace('"', '').upper() +# If LOG_LEVEL is DEBUG, enable Flask debugging: +DEBUG_STATE = True if LOG_LEVEL == "DEBUG" else False # Initiate the Flask application and logging: dictConfig({ @@ -38,6 +39,7 @@ dictConfig({ app = Flask(__name__, static_url_path="/static") executor = Executor(app) app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1) +app.logger.info("LOG LEVEL SET TO %s", str(LOG_LEVEL)) ######################################################################################## # Set Authentication type. Currently "OIDC" and "BASIC"