diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-10-10 15:19:15 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-10-10 17:20:25 -0400 |
commit | 390adc4e58605f771b3fd47e95b3ca5ed747786e (patch) | |
tree | 22d7c3ea481b5c63a0416250f0b2c92b2bddeb36 /virt-manager | |
parent | 155ddcfc177c86ac10d056c5ade61564350d1853 (diff) | |
download | virt-manager-390adc4e58605f771b3fd47e95b3ca5ed747786e.tar.gz |
module_trace: Support --trace_libvirt=all|mainloop
'all' means log even API calls that are invoked from threads
Diffstat (limited to 'virt-manager')
-rwxr-xr-x | virt-manager | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/virt-manager b/virt-manager index d350604b..15d5109f 100755 --- a/virt-manager +++ b/virt-manager @@ -122,8 +122,8 @@ def parse_commandline(): parser.set_defaults(domain=None) # Trace every libvirt API call to debug output - parser.add_argument("--trace-libvirt", - help=argparse.SUPPRESS, action="store_true") + parser.add_argument("--trace-libvirt", choices=["all", "mainloop"], + help=argparse.SUPPRESS) # Don't load any connections on startup to test first run # PackageKit integration @@ -180,7 +180,9 @@ def main(): logging.debug("Libvirt tracing requested") import virtManager.module_trace import libvirt - virtManager.module_trace.wrap_module(libvirt, regex=None) + virtManager.module_trace.wrap_module(libvirt, + mainloop=(options.trace_libvirt == "mainloop"), + regex=None) # With F27 gnome+wayland we need to set these before GTK import os.environ["GSETTINGS_SCHEMA_DIR"] = CLIConfig.gsettings_dir |