From 192602471b06e1bd2d65e673b088612f6bc634e8 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 15 Oct 2023 22:20:12 +0200 Subject: [PATCH] Added debug key --- config_example.json | 1 + main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config_example.json b/config_example.json index 40c264a..cff73b1 100644 --- a/config_example.json +++ b/config_example.json @@ -1,5 +1,6 @@ { "locale": "en", + "debug": false, "bot": { "owner": 0, "api_id": 0, diff --git a/main.py b/main.py index af04103..6aa78c8 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ from modules.migrator import migrate_database from modules.scheduler import scheduler logging.basicConfig( - level=logging.INFO, + level=logging.DEBUG if sync.config_get("debug") else logging.INFO, format="%(name)s.%(funcName)s | %(levelname)s | %(message)s", datefmt="[%X]", )