We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9565adc commit 8a96e02Copy full SHA for 8a96e02
1 file changed
cloudbot/__init__.py
@@ -23,9 +23,6 @@ def _setup():
23
else:
24
logging_config = {}
25
26
- console_debug = logging_config.get("console_debug", False)
27
- file_debug = logging_config.get("file_debug", True)
28
-
29
global logging_dir
30
logging_dir = os.path.join(os.path.abspath(os.path.curdir), "logs")
31
@@ -69,10 +66,10 @@ def _setup():
69
66
}
70
67
71
68
72
- if console_debug:
+ if logging_config.get("console_debug", False):
73
dict_config["handlers"]["console"]["level"] = "DEBUG"
74
75
- if file_debug:
+ if logging_config.get("file_debug", True):
76
dict_config["handlers"]["debug_file"] = {
77
"class": "logging.handlers.RotatingFileHandler",
78
"maxBytes": 1000000,
0 commit comments