Added debug key

This commit is contained in:
Profitroll 2023-10-15 22:20:12 +02:00
parent 1d1ce5ae8c
commit 192602471b
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{
"locale": "en",
"debug": false,
"bot": {
"owner": 0,
"api_id": 0,

View File

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