summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-01-29 19:59:55 +0100
committerGiovanni Campagna <gcampagna@src.gnome.org>2014-02-08 22:05:55 +0100
commitedd777b1e675f9328aa00934651b4763783930a1 (patch)
tree6f27e45418710f5991d6bdb1eb4e6fbb8ee2cf13
parented451a1c8307f3b02f2d4aa9f3bd691e3c0a2f0e (diff)
downloadgvfs-edd777b1e675f9328aa00934651b4763783930a1.tar.gz
various: reduce the verboseness of debug messages
With a recent enough dbus-daemon (or with kdbus), the standard error of dbus activated services is sent to the journal, so we should not pollute it with debug messages by default. https://bugzilla.gnome.org/show_bug.cgi?id=723251
-rw-r--r--daemon/gvfsbackendgphoto2.c4
-rw-r--r--daemon/gvfsbackendmtp.c8
2 files changed, 3 insertions, 9 deletions
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c
index bd759fca..62d85d74 100644
--- a/daemon/gvfsbackendgphoto2.c
+++ b/daemon/gvfsbackendgphoto2.c
@@ -310,10 +310,8 @@ DEBUG (const gchar *message, ...)
#ifdef DEBUG_SHOW_TRACES
va_list args;
va_start (args, message);
- g_vfprintf (stderr, message, args);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message, args);
va_end (args);
- g_fprintf (stderr, "\n");
- fflush (stderr);
#endif
}
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 2b6618d2..a7848e88 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -68,10 +68,8 @@ DEBUG (const gchar *message, ...)
#if DEBUG_SHOW_TRACES
va_list args;
va_start (args, message);
- g_vfprintf (stderr, message, args);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message, args);
va_end (args);
- g_fprintf (stderr, "\n");
- fflush (stderr);
#endif
}
@@ -81,10 +79,8 @@ DEBUG_ENUMERATE (const gchar *message, ...)
#if DEBUG_SHOW_ENUMERATE_TRACES
va_list args;
va_start (args, message);
- g_vfprintf (stderr, message, args);
+ g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message, args);
va_end (args);
- g_fprintf (stderr, "\n");
- fflush (stderr);
#endif
}