forked from elmau/empresa-libre
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.channel}: ' \
|
||||||
'{record.message}'
|
'{record.message}'
|
||||||
|
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
LOG_LEVEL = 'DEBUG'
|
LOG_LEVEL = 'DEBUG'
|
||||||
StreamHandler(
|
StreamHandler(
|
||||||
|
@ -53,6 +54,12 @@ else:
|
||||||
level=LOG_LEVEL,
|
level=LOG_LEVEL,
|
||||||
format_string=format_string).push_application()
|
format_string=format_string).push_application()
|
||||||
|
|
||||||
|
StreamHandler(
|
||||||
|
sys.stdout,
|
||||||
|
level=LOG_LEVEL,
|
||||||
|
format_string=format_string).push_application()
|
||||||
|
|
||||||
|
|
||||||
log = Logger(LOG_NAME)
|
log = Logger(LOG_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue