Skip to content

Commit

Permalink
fix(logging): Fixes up timed file rotation in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
gugarosa authored Nov 8, 2021
1 parent e487d9a commit 8a7d8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nalp/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_timed_file_handler():
"""

# Creates a timed rotating file handler for logger
file_handler = TimedRotatingFileHandler(LOG_FILE, when='midnight')
file_handler = TimedRotatingFileHandler(LOG_FILE, delay=True, when='midnight')
file_handler.setFormatter(FORMATTER)

return file_handler
Expand Down

0 comments on commit 8a7d8b7

Please sign in to comment.