We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b731653 commit bb0a081Copy full SHA for bb0a081
1 file changed
common/logging.py
@@ -47,8 +47,7 @@ def configure_logging():
47
"""Sets up the logging infrastructure: all needed directories & files, handlers, loggers, etc."""
48
49
# Make sure our logfile directory exists
50
- if not os.path.exists(LOGGING_BASE_DIR):
51
- os.mkdir(LOGGING_BASE_DIR)
+ os.makedirs(LOGGING_BASE_DIR, exist_ok=True)
52
53
# extend the basic config with each package's custom, but very similar configuration.
54
config = copy.deepcopy(BASE_CONFIG)
0 commit comments