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)