2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-22 14:47:55 +01:00
parent f3f63bee63
commit e3be70125b

View File

@ -177,7 +177,7 @@ MAX_POST_LEN = 1000
MAX_MSG_LEN = 1000
import os
if not os.environ.get('KOMRADE_SHOW_LOG') or os.environ('KOMRADE_SHOW_LOG')=='0':
import os,logging
if not 'KOMRADE_SHOW_LOG' in os.environ or not os.environ['KOMRADE_SHOW_LOG'] or os.environ['KOMRADE_SHOW_LOG']=='0':
logger = logging.getLogger()
logger.propagate = False