summaryrefslogtreecommitdiffstats
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-02-27 15:35:01 +0100
committerLennart Poettering <lennart@poettering.net>2023-02-28 09:32:42 +0100
commitd6df3bfbb82330fc0e2f90c5455bfe2a89d67477 (patch)
tree1fcea021de092e2b4e82ec9fc185f25039828acb /src/journal
parentsystemctl: print better message if default target is masked (diff)
downloadsystemd-d6df3bfbb82330fc0e2f90c5455bfe2a89d67477.tar.xz
systemd-d6df3bfbb82330fc0e2f90c5455bfe2a89d67477.zip
journald: make sure shall_try_append_again() logs about all return codes passed in, not just some
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index de08c4e965..ec784c957f 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -894,6 +894,7 @@ static bool shall_try_append_again(JournalFile *f, int r) {
return false;
default:
+ log_ratelimit_error_errno(r, JOURNAL_LOG_RATELIMIT, "%s: Unexpected error while writing to journal file: %m", f->path);
return false;
}
}