From 7a2ea36b12b575c6eb3c379b3b18fd5aab7cede4 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sun, 22 Oct 2017 15:13:35 -0500 Subject: [PATCH] =?UTF-8?q?Debug=20en=20shell=20en=20producci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/app/settings.py b/source/app/settings.py index aac7cae..1e68df6 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -38,6 +38,7 @@ format_string = '[{record.time:%d-%b-%Y %H:%M:%S}] ' \ '{record.channel}: ' \ '{record.message}' + if DEBUG: LOG_LEVEL = 'DEBUG' StreamHandler( @@ -53,6 +54,12 @@ else: level=LOG_LEVEL, format_string=format_string).push_application() + StreamHandler( + sys.stdout, + level=LOG_LEVEL, + format_string=format_string).push_application() + + log = Logger(LOG_NAME)