File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ def logfile_path(logfile_name: str):
7272
7373def setup_logger (logfile_path : str , max_size_bytes : int , max_files : int ):
7474 """Initialize rolling debug logger."""
75+ # TODO(#227): Multiple processes will try to write to the same log file causing issues.
76+ # To fix this, we should consider using the PID of the current process to create a unique
77+ # log file. When the program exits, we can create a lockfile and then merge the logs back
78+ # into a contiguous file. This does mean we'll have to handle log rotation and sizing
79+ # rather than using the Python logger framework however.
7580 folder = user_log_path ("DVR-Scan" , False )
7681 folder .mkdir (parents = True , exist_ok = True )
7782 handler = RotatingFileHandler (
You can’t perform that action at this time.
0 commit comments