Commit 31e8430b authored by c.fortmanngrote's avatar c.fortmanngrote
Browse files

Debug logging.

parent 2a6f7284
Pipeline #258950 failed with stages
in 2 minutes and 20 seconds
......@@ -26,13 +26,14 @@ formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(module)s: %(message
handler = logging.FileHandler("/tmp/rarefan.log")
handler.setFormatter(formatter)
if app.debug:
handler.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
else:
handler.setLevel(logging.INFO)
logger.setLevel(logging.INFO)
logger.addHandler(handler)
if app.debug:
logger.warning(logger.level)
logger.debug(logger.level)
logger.warning("****************** Debug mode is active ******************")
......
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