Added debug config option

This commit is contained in:
Profitroll 2024-05-26 13:57:16 +02:00
parent 29e379fa3b
commit d47239899a
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
2 changed files with 2 additions and 1 deletions

View File

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

View File

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