Fix log_message() function to accept additional keyword arguments

- Added **kwargs to log_message() function signature to accept arguments like 'flush=True'
- Maintains compatibility with original print() calls that may have had additional arguments
parent 789aaccb
...@@ -6,7 +6,7 @@ import datetime ...@@ -6,7 +6,7 @@ import datetime
import os import os
def log_message(message: str, process: str = None) -> None: def log_message(message: str, process: str = None, **kwargs) -> None:
"""Log a message with timestamp and process information.""" """Log a message with timestamp and process information."""
if process is None: if process is None:
# Auto-detect process type from current script name # Auto-detect process type from current script name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment