[virt-tools-list] [PATCH virt-viewer] Only filter virt-viewer debug messages
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Jul 11 13:48:52 UTC 2014
Filter only our own debug messages.
https://bugzilla.redhat.com/show_bug.cgi?id=1118365
---
src/virt-viewer-util.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
index 6fdaa07..e3db4a9 100644
--- a/src/virt-viewer-util.c
+++ b/src/virt-viewer-util.c
@@ -283,7 +283,8 @@ static void log_handler(const gchar *log_domain,
const gchar *message,
gpointer unused_data)
{
- if (glib_check_version(2, 32, 0) != NULL)
+ if (glib_check_version(2, 32, 0) != NULL &&
+ g_str_equal(G_LOG_DOMAIN, log_domain))
if (log_level >= G_LOG_LEVEL_DEBUG && !doDebug)
return;
--
1.9.3
More information about the virt-tools-list
mailing list