fix(server): less verbose logging

This commit is contained in:
Laureηt 2022-02-08 18:43:48 +01:00
parent 6a994aeb45
commit 3483d1e70c
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

View file

@ -21,7 +21,13 @@ from settings import (
)
from utils import User, Users
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(name)s %(levelname)-8s %(message)s", datefmt="(%F %T)")
# disable all loggers from different files
logging.getLogger("asyncio").setLevel(logging.ERROR)
logging.getLogger("asyncio.coroutines").setLevel(logging.ERROR)
logging.getLogger("websockets.server").setLevel(logging.ERROR)
logging.getLogger("websockets.protocol").setLevel(logging.ERROR)
r = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, db=0)
r.mset(KEYS_RESET)