[gvfs] mount: Do not spam journal by useless warnings



commit 1d6709036f22cc2a76d2f51314e5987cb2a57dc5
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Dec 15 11:41:17 2016 +0100

    mount: Do not spam journal by useless warnings
    
    The following warning is printed if mount failed from whatever reason:
    dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): ...
    
    It is expected that mount may fail for various reasons and it is not
    definitely anything critical what needs to be always printed. It
    happens regularly with smbbrowse, whenf we are not in smb environment,
    or the workgroup is misconfigured. Let's use g_debug instead of g_warning.

 daemon/mount.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/mount.c b/daemon/mount.c
index e10e145..a3a7991 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -296,7 +296,7 @@ dbus_mount_reply (GVfsDBusMountable *proxy,
       else
         {
           g_dbus_error_strip_remote_error (error);
-          g_warning ("dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): %s", error->message);
+          g_debug ("dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): %s", error->message);
           mount_finish (data, error);
           g_error_free (error);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]