Fix for yappi output
If there is no thread object, there is no thread.ident. Change-Id: I4223cd842bdf87b8b3093c16894e061c4734dde7
This commit is contained in:
parent
dc9347c122
commit
e4cbb674a0
|
@ -56,7 +56,7 @@ def stack_dump_handler(signum, frame):
|
||||||
thread_name = thread.name
|
thread_name = thread.name
|
||||||
thread_is_daemon = str(thread.daemon)
|
thread_is_daemon = str(thread.daemon)
|
||||||
else:
|
else:
|
||||||
thread_name = thread.ident
|
thread_name = '(Unknown)'
|
||||||
thread_is_daemon = '(Unknown)'
|
thread_is_daemon = '(Unknown)'
|
||||||
log_str += "Thread: %s %s d: %s\n"\
|
log_str += "Thread: %s %s d: %s\n"\
|
||||||
% (thread_id, thread_name, thread_is_daemon)
|
% (thread_id, thread_name, thread_is_daemon)
|
||||||
|
|
Loading…
Reference in New Issue