From ffa42d4015c25d234d8449697d59c6a74d1b14aa Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 27 Mar 2017 15:27:34 -0700 Subject: [PATCH] Add thread-id to log format --- octodns/cmds/args.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/octodns/cmds/args.py b/octodns/cmds/args.py index daec5c9..c84dd92 100644 --- a/octodns/cmds/args.py +++ b/octodns/cmds/args.py @@ -43,9 +43,7 @@ class ArgumentParser(_Base): return args def _setup_logging(self, args, default_log_level): - # TODO: if/when things are multi-threaded add [%(thread)d] in to the - # format - fmt = '%(asctime)s %(levelname)-5s %(name)s %(message)s' + fmt = '%(asctime)s [%(thread)d] %(levelname)-5s %(name)s %(message)s' formatter = Formatter(fmt=fmt, datefmt='%Y-%m-%dT%H:%M:%S ') stream = stdout if args.log_stream_stdout else stderr handler = StreamHandler(stream=stream)