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"]) self.logger.setLevel(LEVELS["trace"])
formatter = BitBotFormatter( formatter = BitBotFormatter("%(asctime)s [%(levelname)s] %(message)s")
"%(asctime)s [%(levelname)s] %(message)s",
"%Y-%m-%dT%H:%M:%S.%fZ")
stdout_handler = logging.StreamHandler(sys.stdout) stdout_handler = logging.StreamHandler(sys.stdout)
stdout_handler.setLevel(stdout_level) stdout_handler.setLevel(stdout_level)