X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fdbus-common.c;h=da2dc2e983a06c734616fc87b614ccef5617f986;hb=e627440b41bb0284e4892f7aa9d84c77972487e2;hp=7f0dce5ad393eda0b6292f3e3d793390ffa09a26;hpb=c67de56f50b83ec0d34308a6de80f6c65879b1b5;p=elogind.git diff --git a/src/shared/dbus-common.c b/src/shared/dbus-common.c index 7f0dce5ad..da2dc2e98 100644 --- a/src/shared/dbus-common.c +++ b/src/shared/dbus-common.c @@ -1287,7 +1287,8 @@ int bus_method_call_with_reply(DBusConnection *bus, reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error); dbus_message_unref(m); if (!reply) { - log_error("Failed to issue method call: %s", bus_error_message(&error)); + if (!return_error) + log_error("Failed to issue method call: %s", bus_error_message(&error)); if (bus_error_is_no_service(&error)) r = -ENOENT; else if (dbus_error_has_name(&error, DBUS_ERROR_ACCESS_DENIED))