Skip to content

Commit 8a96e02

Browse files
committed
No need to assign these to variables
1 parent 9565adc commit 8a96e02

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

cloudbot/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ def _setup():
2323
else:
2424
logging_config = {}
2525

26-
console_debug = logging_config.get("console_debug", False)
27-
file_debug = logging_config.get("file_debug", True)
28-
2926
global logging_dir
3027
logging_dir = os.path.join(os.path.abspath(os.path.curdir), "logs")
3128

@@ -69,10 +66,10 @@ def _setup():
6966
}
7067
}
7168

72-
if console_debug:
69+
if logging_config.get("console_debug", False):
7370
dict_config["handlers"]["console"]["level"] = "DEBUG"
7471

75-
if file_debug:
72+
if logging_config.get("file_debug", True):
7673
dict_config["handlers"]["debug_file"] = {
7774
"class": "logging.handlers.RotatingFileHandler",
7875
"maxBytes": 1000000,

0 commit comments

Comments
 (0)