Skip to content

Commit

Permalink
Attempting to fix a Windows bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lawhead committed Jan 8, 2025
1 parent bfbd196 commit ec419b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bcipy/simulator/tests/test_sim_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_configure_root_logger(self):
def test_remove_file_logger(self):
"""Test removal of file handler from root logger"""
configure_logger(self.temp_dir,
file_name=f"{RUN_PREFIX}99",
file_name=f"{RUN_PREFIX}99.log",
logger_name=None,
use_stdout=False)
log = logging.getLogger()
Expand Down
2 changes: 1 addition & 1 deletion bcipy/simulator/util/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def configure_logger(log_path: str,
stdout_handler.setFormatter(logging.Formatter("%(message)s"))
log.addHandler(stdout_handler)

file_handler = logging.FileHandler(f"{log_path}/{file_name}")
file_handler = logging.FileHandler(f"{log_path}/{file_name}", delay=True)
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(logging.Formatter(fmt))
log.addHandler(file_handler)
Expand Down

0 comments on commit ec419b7

Please sign in to comment.