Commit 9c2cdb2f authored by c.fortmanngrote's avatar c.fortmanngrote
Browse files

Centralize debug settings.

parent cf089f53
Pipeline #259012 failed with stages
in 3 minutes and 13 seconds
......@@ -24,7 +24,10 @@ app.config['UPLOAD_DIR'] = upload_dir
formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(module)s: %(message)s')
handler = logging.FileHandler(filename="/tmp/rarefan.log")
handler.setFormatter(formatter)
handler.setLevel(logging.DEBUG)
handler.setLevel(logging.INFO)
if app.config['DEBUG']:
handler.setLevel(logging.DEBUG)
# Configure root logger (this config will trickle down to all module loggers.)
app.logger.addHandler(handler)
......
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