diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-11-27 13:03:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-31 15:03:04 +0100 |
commit | 24352691713179e27491b9294625b96b95fd9ed1 (patch) | |
tree | b7c86c424ad7e708218a38a1376b9537f62f6159 /src/journal/journald.c | |
parent | systemctl: show logs for correct namespace of service (diff) | |
download | systemd-24352691713179e27491b9294625b96b95fd9ed1.tar.xz systemd-24352691713179e27491b9294625b96b95fd9ed1.zip |
journald: add logging for one error we lacked logging for
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r-- | src/journal/journald.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index cd3a412c2e..d78ab3aa20 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -62,8 +62,10 @@ int main(int argc, char *argv[]) { usec_t t = USEC_INFINITY, n; r = sd_event_get_state(server.event); - if (r < 0) + if (r < 0) { + log_error_errno(r, "Failed to get event loop state: %m"); goto finish; + } if (r == SD_EVENT_FINISHED) break; |