minor fixes

This commit is contained in:
walker 2022-11-05 00:40:26 +04:00
parent 6acc2068de
commit 756f0bd89a
2 changed files with 3 additions and 3 deletions

View File

@ -31,5 +31,5 @@ REDIS_PATH=redis://redis
# Set log level, can be CRITICAL, ERROR, WARNING, INFO, DEBUG. By default it set to WARNING.
LOGLEVEL=
# Uncomment this to switch bot language to Chinese
# O_LANG=zh
# Uncomment this to switch bot language to English
# O_LANG=en

View File

@ -105,7 +105,7 @@ class ServerSettings(AbstractSettings):
return int(timedelta(days=1).total_seconds() * 1000.0)
logging.basicConfig(level=os.environ.get("LOGLEVEL", "WARNING"),
logging.basicConfig(level=os.environ.get("LOGLEVEL") or "WARNING",
format='%(asctime)s %(levelname)-8s %(message)s')