Skip to content
Permalink
Browse files
feat: Added timestamp to each log message (#1304)
* Added timestamp to each log message

* Extra commit to pass title-format check
  • Loading branch information
fgvieira committed Jan 26, 2022
1 parent 735ab23 commit a5769f0baeaa829b7813dee8c78902edbb42cf4b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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)

0 comments on commit a5769f0

Please sign in to comment.