Added debug config option
This commit is contained in:
parent
29e379fa3b
commit
d47239899a
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"debug": false,
|
||||||
"locale": "en",
|
"locale": "en",
|
||||||
"bot": {
|
"bot": {
|
||||||
"owner": 0,
|
"owner": 0,
|
||||||
|
2
main.py
2
main.py
@ -22,7 +22,7 @@ from modules.scheduler import scheduler
|
|||||||
|
|
||||||
|
|
||||||
logging.basicConfig(
|
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",
|
format="%(name)s.%(funcName)s | %(levelname)s | %(message)s",
|
||||||
datefmt="[%X]",
|
datefmt="[%X]",
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user