[gtk/ci-installed-tests: 3/3] cups: Don't emit a warning if we can't talk to avahi




commit 5ecf1431f0aa89ee56e00b5d748c59966fd1d89e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 1 22:42:25 2020 -0400

    cups: Don't emit a warning if we can't talk to avahi
    
    The g_warning in this case makes the templates test
    fail if it can't connect to the system bus (as is the
    case for running installed tests in ci).

 modules/printbackends/gtkprintbackendcups.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/printbackends/gtkprintbackendcups.c b/modules/printbackends/gtkprintbackendcups.c
index f3435b57bb..b168d34368 100644
--- a/modules/printbackends/gtkprintbackendcups.c
+++ b/modules/printbackends/gtkprintbackendcups.c
@@ -3415,7 +3415,7 @@ avahi_create_browsers (GObject      *source_object,
   if (!dbus_connection)
     {
       if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
-        g_warning ("Couldn't connect to D-Bus system bus, %s", error->message);
+        g_message ("Couldn't connect to D-Bus system bus, avahi printers will not be available: %s", 
error->message);
 
       g_error_free (error);
       return;


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