From d160e060f4767db02630728053f8d45a441f618a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Sep 2018 00:44:39 +0200 Subject: [PATCH] ? --- bots.py | 2 +- discordbot.py | 2 +- redditbot.py | 3 ++- statsupdater.py | 2 +- telegrambot.py | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bots.py b/bots.py index 96bc3851..721994c1 100644 --- a/bots.py +++ b/bots.py @@ -7,7 +7,7 @@ import time import logging import coloredlogs -logging.getLogger().disabled = True +logging.lastResort = None logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/discordbot.py b/discordbot.py index 996d9c09..cb25189a 100644 --- a/discordbot.py +++ b/discordbot.py @@ -20,7 +20,7 @@ import datetime import sqlalchemy.exc import coloredlogs -logging.getLogger().disabled = True +logging.lastResort = None logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/redditbot.py b/redditbot.py index a23d4cc3..77c1b4cb 100644 --- a/redditbot.py +++ b/redditbot.py @@ -13,7 +13,8 @@ import coloredlogs config = configparser.ConfigParser() config.read("config.ini") -logging.getLogger().disabled = True +logging.lastResort = None +ì logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/statsupdater.py b/statsupdater.py index a940e4b7..f11fb25e 100644 --- a/statsupdater.py +++ b/statsupdater.py @@ -9,7 +9,7 @@ import telegram import sys import coloredlogs -logging.getLogger().disabled = True +logging.lastResort = None logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/telegrambot.py b/telegrambot.py index 52bdd329..688a32cc 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -24,7 +24,7 @@ try: except Exception: model = None -logging.getLogger().disabled = True +logging.lastResort = None logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger)