From e47d747de773668cda2b1d4d5d9537df4776693d Mon Sep 17 00:00:00 2001 From: fgvieira Date: Wed, 15 Dec 2021 21:50:47 +0100 Subject: [PATCH 1/2] Added timestamp to each log message --- snakemake/logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/snakemake/logging.py b/snakemake/logging.py index 195ac901e..82ddf4af8 100644 --- a/snakemake/logging.py +++ b/snakemake/logging.py @@ -333,6 +333,7 @@ def remove_logfile(self): os.remove(self.logfile) def handler(self, msg): + msg["timestamp"] = time.time() for handler in self.log_handler: handler(msg) From ae4da638b27f3a7ca88f42c8b1a18987fedfc87b Mon Sep 17 00:00:00 2001 From: fgvieira Date: Wed, 15 Dec 2021 22:24:54 +0100 Subject: [PATCH 2/2] Extra commit to pass title-format check --- snakemake/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake/logging.py b/snakemake/logging.py index 82ddf4af8..66c305383 100644 --- a/snakemake/logging.py +++ b/snakemake/logging.py @@ -272,7 +272,7 @@ def log_handler(self, msg): Sends the log to the server. Args: - msg (dict): the log message dictionary + msg (dict): the log message dictionary """ import requests