Added debug key
This commit is contained in:
parent
1d1ce5ae8c
commit
192602471b
@ -1,5 +1,6 @@
|
||||
{
|
||||
"locale": "en",
|
||||
"debug": false,
|
||||
"bot": {
|
||||
"owner": 0,
|
||||
"api_id": 0,
|
||||
|
2
main.py
2
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]",
|
||||
)
|
||||
|
Reference in New Issue
Block a user