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]", )