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).
This commit is contained in:
Matthias Clasen 2020-08-01 22:42:25 -04:00
parent 28a9fa2486
commit 5ecf1431f0

View File

@ -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;