Logging.BitBotFormatter no longer uses the format it's given (always iso8601)

This commit is contained in:
jesopo 2019-08-30 13:46:21 +01:00
parent 58a4fd7e74
commit 2c812ccaaa

View file

@ -26,9 +26,7 @@ class Log(object):
self.logger.setLevel(LEVELS["trace"])
formatter = BitBotFormatter(
"%(asctime)s [%(levelname)s] %(message)s",
"%Y-%m-%dT%H:%M:%S.%fZ")
formatter = BitBotFormatter("%(asctime)s [%(levelname)s] %(message)s")
stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(stdout_level)