From: Ravi Chamarty Date: Mon, 29 Oct 2018 16:07:03 +0000 (-0400) Subject: Add thread id to RO log format X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F6787%2F1;p=osm%2FRO.git Add thread id to RO log format Change-Id: I967aadd19fbecb3335aa833136a368d97997c410 Signed-off-by: Ravi Chamarty --- diff --git a/openmanod b/openmanod index d3e55226..b935017f 100755 --- a/openmanod +++ b/openmanod @@ -176,7 +176,7 @@ if __name__=="__main__": 'severity:%(levelname)s logger:%(name)s log:%(message)s'.format( host=hostname), datefmt='%Y-%m-%dT%H:%M:%S') - log_format_simple = "%(asctime)s %(levelname)s %(name)s %(filename)s:%(lineno)s %(message)s" + log_format_simple = "%(asctime)s %(levelname)s %(name)s %(thread)d %(filename)s:%(lineno)s %(message)s" log_formatter_simple = logging.Formatter(log_format_simple, datefmt='%Y-%m-%dT%H:%M:%S') logging.basicConfig(format=log_format_simple, level= logging.DEBUG) logger = logging.getLogger('openmano')