From ecc0a763cf3cb5810ee528b9c04eac68e64920eb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Sep 2018 00:35:37 +0200 Subject: [PATCH] asdfasfasfs --- bots.py | 2 +- discordbot.py | 2 +- redditbot.py | 2 +- statsupdater.py | 2 +- telegrambot.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bots.py b/bots.py index 07a0b6ac..96bc3851 100644 --- a/bots.py +++ b/bots.py @@ -7,7 +7,7 @@ import time import logging import coloredlogs -logging.getLogger().setLevel(level=logging.ERROR) +logging.getLogger().disabled = True logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/discordbot.py b/discordbot.py index a6d804ca..996d9c09 100644 --- a/discordbot.py +++ b/discordbot.py @@ -20,7 +20,7 @@ import datetime import sqlalchemy.exc import coloredlogs -logging.getLogger().setLevel(level=logging.ERROR) +logging.getLogger().disabled = True logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/redditbot.py b/redditbot.py index 98fe43cf..a23d4cc3 100644 --- a/redditbot.py +++ b/redditbot.py @@ -13,7 +13,7 @@ import coloredlogs config = configparser.ConfigParser() config.read("config.ini") -logging.getLogger().setLevel(level=logging.ERROR) +logging.getLogger().disabled = True logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/statsupdater.py b/statsupdater.py index 8bc4044e..a940e4b7 100644 --- a/statsupdater.py +++ b/statsupdater.py @@ -9,7 +9,7 @@ import telegram import sys import coloredlogs -logging.getLogger().setLevel(level=logging.ERROR) +logging.getLogger().disabled = True logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger) diff --git a/telegrambot.py b/telegrambot.py index 8625db74..52bdd329 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -24,7 +24,7 @@ try: except Exception: model = None -logging.getLogger().setLevel(level=logging.ERROR) +logging.getLogger().disabled = True logger = logging.getLogger(__name__) coloredlogs.install(level="DEBUG", logger=logger)