Skip to content

Commit

Permalink
No such flag buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
Waino committed Oct 2, 2023
1 parent db11ffa commit 1fdd7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mammoth/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def init_structured_logger(
log_format = logging.Formatter("%(message)s")
logger = logging.getLogger("structured_logger")
logger.setLevel(logging.INFO)
file_handler = logging.FileHandler(log_file, mode='a', buffering=1, delay=True)
file_handler = logging.FileHandler(log_file, mode='a', delay=True)
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(log_format)
logger.handlers = [file_handler]
Expand Down

0 comments on commit 1fdd7a6

Please sign in to comment.