summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-22 14:00:40 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-31 15:00:21 +0100
commit659a77bec6d574659e717f9be16105f7a2178bbe (patch)
treecd8f7aaf07d47e7540675a028443348fd96a18e4 /src/journal
parentd83f7e4c9218fe409ff6b0269061f27fba1c1b79 (diff)
downloadsystemd-659a77bec6d574659e717f9be16105f7a2178bbe.tar.gz
journald: add missing logging for some errors
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 305a5eff37..286dda2971 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);