diff --git a/bot.py b/bot.py index cc0a411..fd974a4 100644 --- a/bot.py +++ b/bot.py @@ -17,9 +17,7 @@ config.read('settings.cfg') log = logging.getLogger('irc.client') log.addHandler(logging.StreamHandler()) - -if os.getenv('DEBUG', False): - log.setLevel(logging.DEBUG) +log.setLevel(logging.DEBUG if bool(int(os.getenv('DEBUG', 0))) else logging.INFO) QUOTE_ADDED_PATTERN = re.compile(r'''^