diff --git a/example.env b/example.env index 0a79f40..11fa00e 100644 --- a/example.env +++ b/example.env @@ -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 diff --git a/olgram/settings.py b/olgram/settings.py index 56524a3..fed833f 100644 --- a/olgram/settings.py +++ b/olgram/settings.py @@ -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')