From: Lennart Poettering Date: Wed, 27 Nov 2019 12:03:51 +0000 (+0100) Subject: journald: add logging for one error we lacked logging for X-Git-Tag: v245-rc1~41^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24352691713179e27491b9294625b96b95fd9ed1;p=thirdparty%2Fsystemd.git journald: add logging for one error we lacked logging for --- diff --git a/src/journal/journald.c b/src/journal/journald.c index cd3a412c2e4..d78ab3aa20a 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;