diff --git a/snakemake/logging.py b/snakemake/logging.py index 46a3f9861..09c13a276 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 @@ -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)