From e910d0b7cdb1ebe9b7ec7f30e3a0e259596ce3af Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 8 Mar 2020 03:00:43 +0100 Subject: gpm-control: warning when a property cannot be set using dbus --- src/gpm-control.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gpm-control.c b/src/gpm-control.c index 5f9d528..4834a05 100644 --- a/src/gpm-control.c +++ b/src/gpm-control.c @@ -103,7 +103,7 @@ gpm_control_systemd_shutdown (void) { &error ); //append all our arguments if (proxy == NULL) { - g_error("Error connecting to dbus - %s", error->message); + g_warning ("Error connecting to dbus - %s", error->message); g_error_free (error); return FALSE; } @@ -116,7 +116,7 @@ gpm_control_systemd_shutdown (void) { &error ); if (error != NULL) { - g_error ("Error in dbus - %s", error->message); + g_warning ("Error in dbus - %s", error->message); g_error_free (error); return FALSE; } @@ -268,7 +268,7 @@ gpm_control_suspend (GpmControl *control, GError **error) NULL, &dbus_error ); if (proxy == NULL) { - g_error ("Error connecting to dbus - %s", dbus_error->message); + g_warning ("Error connecting to dbus - %s", dbus_error->message); g_error_free (dbus_error); ret = FALSE; goto out; @@ -281,7 +281,7 @@ gpm_control_suspend (GpmControl *control, GError **error) &dbus_error ); if (dbus_error != NULL ) { - g_debug ("Error in dbus - %s", dbus_error->message); + g_warning ("Error in dbus - %s", dbus_error->message); g_error_free (dbus_error); ret = TRUE; } @@ -386,7 +386,7 @@ gpm_control_hibernate (GpmControl *control, GError **error) NULL, &dbus_error ); if (proxy == NULL) { - g_error ("Error connecting to dbus - %s", dbus_error->message); + g_warning ("Error connecting to dbus - %s", dbus_error->message); g_error_free (dbus_error); ret = FALSE; goto out; @@ -399,7 +399,7 @@ gpm_control_hibernate (GpmControl *control, GError **error) &dbus_error ); if (dbus_error != NULL ) { - g_debug ("Error in dbus - %s", dbus_error->message); + g_warning ("Error in dbus - %s", dbus_error->message); g_error_free (dbus_error); ret = TRUE; } -- cgit v1.2.1