From 24352691713179e27491b9294625b96b95fd9ed1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Nov 2019 13:03:51 +0100 Subject: [PATCH] journald: add logging for one error we lacked logging for --- src/journal/journald.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;