don't print exceptions in atexit handler 23/54623/3
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 29 Mar 2018 21:02:49 +0000 (14:02 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 29 Mar 2018 21:55:31 +0000 (21:55 +0000)
atexit handler calls terminate_all after the regular python execution
path, and it looks like the traceback stack is None somehow.

In this context log.debug("", exc_info=True) doesn't work
it prints out NoneType on Python3 and
causes other problems on Python2.7

remove the exc_info=True from the logging call

JIRA: YARDSTICK-1107

Change-Id: Ida0a0ced7ff5e017e2f8608880e3bb531724af95
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
yardstick/benchmark/runners/base.py

index 99386a4..fbdf6c2 100755 (executable)
@@ -121,7 +121,7 @@ class Runner(object):
     @staticmethod
     def terminate_all():
         """Terminate all runners (subprocesses)"""
-        log.debug("Terminating all runners", exc_info=True)
+        log.debug("Terminating all runners")
 
         # release dumper process as some errors before any runner is created
         if not Runner.runners: