Skip to content

Commit d6d4b33

Browse files
committed
Possibly improve logging issues - needs testing
1 parent e47b990 commit d6d4b33

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

cloudbot/__init__.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,16 @@ def _setup():
6464
"cloudbot": {
6565
"level": "DEBUG",
6666
"handlers": ["console", "file"]
67-
},
68-
"asyncio": {
69-
"level": "DEBUG",
70-
"handlers": ["console", "file"]
71-
},
72-
"py.warnings": {
73-
"level": "DEBUG",
74-
"handlers": ["console", "file"]
7567
}
7668
}
7769
}
7870

7971
if logging_config.get("console_debug", False):
8072
dict_config["handlers"]["console"]["level"] = "DEBUG"
73+
dict_config["loggers"]["asyncio"] = {
74+
"level": "DEBUG",
75+
"handlers": ["console", "file"]
76+
}
8177

8278
if logging_config.get("file_debug", True):
8379
dict_config["handlers"]["debug_file"] = {

0 commit comments

Comments
 (0)