Skip to content

Commit

Permalink
disable propagation of base_logger if logfile cannot be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 9, 2025
1 parent fd2b313 commit a988e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/specsanalyzer/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def setup_logging(
except PermissionError:
logging.warning(f"Cannot create logfile in Folder {user_log_path}, disabling logfile.")
base_logger.addHandler(logging.NullHandler())
base_logger.propagate = False

# create named logger
logger = base_logger.getChild(name)
Expand Down

0 comments on commit a988e6b

Please sign in to comment.