Add thread id to RO log format 86/6786/1
authorRavi Chamarty <ravi.chamarty@riftio.com>
Mon, 29 Oct 2018 16:07:03 +0000 (12:07 -0400)
committerRavi Chamarty <ravi.chamarty@riftio.com>
Mon, 29 Oct 2018 16:07:03 +0000 (12:07 -0400)
Change-Id: I967aadd19fbecb3335aa833136a368d97997c410
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
openmanod

index 9e26870..38cff67 100755 (executable)
--- a/openmanod
+++ b/openmanod
@@ -179,7 +179,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')