Fix debug mode detection

master
Nikola Forró 7 years ago
parent 71b6558b9d
commit 0f3ce8022f

@ -17,9 +17,7 @@ config.read('settings.cfg')
log = logging.getLogger('irc.client') log = logging.getLogger('irc.client')
log.addHandler(logging.StreamHandler()) log.addHandler(logging.StreamHandler())
log.setLevel(logging.DEBUG if bool(int(os.getenv('DEBUG', 0))) else logging.INFO)
if os.getenv('DEBUG', False):
log.setLevel(logging.DEBUG)
QUOTE_ADDED_PATTERN = re.compile(r'''^ QUOTE_ADDED_PATTERN = re.compile(r'''^

Loading…
Cancel
Save