From: Lennart Poettering Date: Fri, 22 Nov 2019 13:00:40 +0000 (+0100) Subject: journald: add missing logging for some errors X-Git-Tag: v245-rc1~41^2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=659a77bec6d574659e717f9be16105f7a2178bbe;p=thirdparty%2Fsystemd.git journald: add missing logging for some errors --- diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 305a5eff377..286dda29716 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -2177,11 +2177,11 @@ int server_init(Server *s) { s->ratelimit = journal_ratelimit_new(); if (!s->ratelimit) - return -ENOMEM; + return log_oom(); r = cg_get_root_path(&s->cgroup_root); if (r < 0) - return r; + return log_error_errno(r, "Failed to acquire cgroup root path: %m"); server_cache_hostname(s); server_cache_boot_id(s); @@ -2190,7 +2190,7 @@ int server_init(Server *s) { s->runtime_storage.path = path_join("/run/log/journal", SERVER_MACHINE_ID(s)); s->system_storage.path = path_join("/var/log/journal", SERVER_MACHINE_ID(s)); if (!s->runtime_storage.path || !s->system_storage.path) - return -ENOMEM; + return log_oom(); (void) server_connect_notify(s);