Skip to content

Commit

Permalink
Minor fix for logging
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 5, 2024
1 parent 57c5021 commit a472850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mirrormanager2/crawler/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def setup_logging(debug, console):
def thread_file_logger(config, host_id, debug):
log_dir = config.get("MM_LOG_DIR", None)
if log_dir is None or log_dir == "-":
yield None
return
log_dir = os.path.join(log_dir, "crawler")
if not os.path.isdir(log_dir):
Expand Down

0 comments on commit a472850

Please sign in to comment.