summaryrefslogtreecommitdiffstats
path: root/src/journal/journald.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c4
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;