Debug en shell en producción
This commit is contained in:
parent
76df8a101a
commit
7a2ea36b12
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue