Skip to content

Commit

Permalink
cgroups-agent: down-grade log level
Browse files Browse the repository at this point in the history
(cherry picked from commit 844de43)

Conflicts:
        src/cgroups-agent/cgroups-agent.c

Resolves: #1044386
  • Loading branch information
lnykryn committed Jul 23, 2014
1 parent bb586b5 commit b0010d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cgroups-agent/cgroups-agent.c
Expand Up @@ -50,7 +50,11 @@ int main(int argc, char *argv[]) {

bus = dbus_connection_open_private("unix:path=/run/systemd/private", &error);
if (!bus) {
log_warning("Failed to get D-Bus connection: %s", bus_error_message(&error));
log_warning("Failed to get D-Bus connection: %s", strerror(-r));
/* If we couldn't connect we assume this was triggered
* while systemd got restarted/transitioned from
* initrd to the system, so let's ignore this */
log_debug("Failed to get D-Bus connection: %s", strerror(-r));
goto finish;
}

Expand All @@ -73,7 +77,7 @@ int main(int argc, char *argv[]) {
}

if (!dbus_connection_send(bus, m, NULL)) {
log_error("Failed to send signal message on private connection.");
log_debug("Failed to send signal message on private connection.");
goto finish;
}

Expand Down

0 comments on commit b0010d7

Please sign in to comment.