mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
?
This commit is contained in:
parent
08d2a9d8e0
commit
d160e060f4
5 changed files with 6 additions and 5 deletions
2
bots.py
2
bots.py
|
@ -7,7 +7,7 @@ import time
|
||||||
import logging
|
import logging
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
|
|
||||||
logging.getLogger().disabled = True
|
logging.lastResort = None
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
coloredlogs.install(level="DEBUG", logger=logger)
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import datetime
|
||||||
import sqlalchemy.exc
|
import sqlalchemy.exc
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
|
|
||||||
logging.getLogger().disabled = True
|
logging.lastResort = None
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
coloredlogs.install(level="DEBUG", logger=logger)
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ import coloredlogs
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read("config.ini")
|
config.read("config.ini")
|
||||||
|
|
||||||
logging.getLogger().disabled = True
|
logging.lastResort = None
|
||||||
|
ì
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
coloredlogs.install(level="DEBUG", logger=logger)
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import telegram
|
||||||
import sys
|
import sys
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
|
|
||||||
logging.getLogger().disabled = True
|
logging.lastResort = None
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
coloredlogs.install(level="DEBUG", logger=logger)
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ try:
|
||||||
except Exception:
|
except Exception:
|
||||||
model = None
|
model = None
|
||||||
|
|
||||||
logging.getLogger().disabled = True
|
logging.lastResort = None
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
coloredlogs.install(level="DEBUG", logger=logger)
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue