[gvfs] job: Do not spam journal by useless warnings
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] job: Do not spam journal by useless warnings
- Date: Thu, 15 Dec 2016 10:52:03 +0000 (UTC)
commit 8dec4b1823298e754f6c6408276fe775c82dfa99
Author: Ondrej Holy <oholy redhat com>
Date: Thu Dec 15 11:26:26 2016 +0100
job: Do not spam journal by useless warnings
The following warnings are printed from daemons if an enumeration is
closed by a client prematurely, or a client terminates unexpectidly:
send_infos_cb: No such interface 'org.gtk.vfs.Enumerator' ...
send_done_cb: No such interface 'org.gtk.vfs.Enumerator' ...
send_infos_cb: The connection is closed
send_done_cb: The connection is closed
Those warnings are not really useful and just spam journal. They are
usualy printed as a consequence of some client crashes. This situation
is expected and it is not cricial for daemons. Let's use g_debug
instead of them...
daemon/gvfsjobenumerate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsjobenumerate.c b/daemon/gvfsjobenumerate.c
index bb42a3f..f09785b 100644
--- a/daemon/gvfsjobenumerate.c
+++ b/daemon/gvfsjobenumerate.c
@@ -145,7 +145,7 @@ send_infos_cb (GVfsDBusEnumerator *proxy,
if (error != NULL)
{
g_dbus_error_strip_remote_error (error);
- g_warning ("send_infos_cb: %s (%s, %d)\n", error->message, g_quark_to_string (error->domain),
error->code);
+ g_debug ("send_infos_cb: %s (%s, %d)\n", error->message, g_quark_to_string (error->domain),
error->code);
g_error_free (error);
}
}
@@ -234,7 +234,7 @@ send_done_cb (GVfsDBusEnumerator *proxy,
if (error != NULL)
{
g_dbus_error_strip_remote_error (error);
- g_warning ("send_done_cb: %s (%s, %d)\n", error->message, g_quark_to_string (error->domain),
error->code);
+ g_debug ("send_done_cb: %s (%s, %d)\n", error->message, g_quark_to_string (error->domain),
error->code);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]