module_trace: Only show main thread APIs by default

This commit is contained in:
Cole Robinson 2014-09-21 12:05:02 -04:00
parent f4563906ca
commit 4568cdb636
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def generate_wrapper(origfunc, name):
name.endswith(".connect") or
name.startswith("libvirtError"))
if not is_non_network_libvirt_call:
if not is_non_network_libvirt_call and is_main_thread:
tb = ""
if is_main_thread:
tb = "\n%s" % "".join(traceback.format_stack())