Add thread id to RO log format 87/6787/1
authorRavi Chamarty <ravi.chamarty@riftio.com>
Mon, 29 Oct 2018 16:07:03 +0000 (12:07 -0400)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 29 Oct 2018 16:39:54 +0000 (17:39 +0100)
Change-Id: I967aadd19fbecb3335aa833136a368d97997c410
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
openmanod

index d3e5522..b935017 100755 (executable)
--- 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')