summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-08 03:00:43 +0100
committerZenWalker <[email protected]>2020-03-11 19:18:11 +0100
commite910d0b7cdb1ebe9b7ec7f30e3a0e259596ce3af (patch)
tree853c137b6e54d37f2be0fd9a8b030c25e19b9438
parentbc2ce04e354fa82844ebc29e14182e3371c0d0c6 (diff)
downloadmate-power-manager-e910d0b7cdb1ebe9b7ec7f30e3a0e259596ce3af.tar.bz2
mate-power-manager-e910d0b7cdb1ebe9b7ec7f30e3a0e259596ce3af.tar.xz
gpm-control: warning when a property cannot be set using dbus
-rw-r--r--src/gpm-control.c12
1 files changed, 6 insertions, 6 deletions
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;
}