From c0afc943e0a7eafd5356c93d9c97dfa25f2e53bc Mon Sep 17 00:00:00 2001 From: Tobias Block Date: Mon, 23 Sep 2024 20:52:00 +0000 Subject: [PATCH] Added time stamps for Docker logs. --- process/process_series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_series.py b/process/process_series.py index 56f8044..e553631 100755 --- a/process/process_series.py +++ b/process/process_series.py @@ -262,7 +262,7 @@ def decode_task_json(json_string: Optional[str]) -> Any: # Print the log out of the module logger.info("=== MODULE OUTPUT - BEGIN ========================================") if container.logs() is not None: - logs = container.logs().decode("utf-8") + logs = container.logs(timestamps=True).decode("utf-8") if not config.mercure.processing_logs.discard_logs: monitor.send_process_logs(task.id, task_processing.module_name, logs) logger.info(logs)