We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d451f commit 256c839Copy full SHA for 256c839
1 file changed
cloudbot/__init__.py
@@ -1,4 +1,5 @@
1
import sys
2
+import warnings
3
4
# check python version
5
if sys.version_info < (3, 4, 0):
@@ -29,6 +30,8 @@ def _setup():
29
30
if not os.path.exists(logging_dir):
31
os.makedirs(logging_dir)
32
33
+ logging.captureWarnings(True)
34
+
35
dict_config = {
36
"version": 1,
37
"formatters": {
@@ -66,6 +69,10 @@ def _setup():
66
69
"asyncio": {
67
70
"level": "DEBUG",
68
71
"handlers": ["console", "file"]
72
+ },
73
+ "py.warnings": {
74
+ "level": "DEBUG",
75
+ "handlers": ["console", "file"]
76
}
77
78
0 commit comments