84b277
From 6b8650a2e10a00088b977467bf0c79dd7044fcd9 Mon Sep 17 00:00:00 2001
84b277
From: Lukas Nykryn <lnykryn@redhat.com>
84b277
Date: Mon, 10 Nov 2014 17:00:20 +0100
84b277
Subject: [PATCH] cgroups-agent: really down-grade log level
84b277
84b277
(rhel-only, fix for broken backport b0010d76a8c56900d15fab8ac1ed94d364d1e566)
84b277
84b277
Related: #1044386
84b277
---
84b277
 src/cgroups-agent/cgroups-agent.c | 3 +--
84b277
 1 file changed, 1 insertion(+), 2 deletions(-)
84b277
84b277
diff --git a/src/cgroups-agent/cgroups-agent.c b/src/cgroups-agent/cgroups-agent.c
84b277
index 43b9b3a..57db147 100644
84b277
--- a/src/cgroups-agent/cgroups-agent.c
84b277
+++ b/src/cgroups-agent/cgroups-agent.c
84b277
@@ -50,11 +50,10 @@ int main(int argc, char *argv[]) {
84b277
 
84b277
         bus = dbus_connection_open_private("unix:path=/run/systemd/private", &error);
84b277
         if (!bus) {
84b277
-                log_warning("Failed to get D-Bus connection: %s", strerror(-r));
84b277
                 /* If we couldn't connect we assume this was triggered
84b277
                  * while systemd got restarted/transitioned from
84b277
                  * initrd to the system, so let's ignore this */
84b277
-                log_debug("Failed to get D-Bus connection: %s", strerror(-r));
84b277
+                log_debug("Failed to get D-Bus connection: %s", bus_error_message(&error));
84b277
                 goto finish;
84b277
         }
84b277