diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-20 08:20:29 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-04-20 13:27:37 +0200 |
commit | cb7e892c22aeadef243ae69b4c73d13ae4331fcd (patch) | |
tree | 6ed33bd4ea8f8cd714d92e3013dac0dfe0b32def /src/libsystemd/sd-journal | |
parent | test: add test case for sd_journal_{get,seek,test}_cursor() (diff) | |
download | systemd-cb7e892c22aeadef243ae69b4c73d13ae4331fcd.tar.xz systemd-cb7e892c22aeadef243ae69b4c73d13ae4331fcd.zip |
sd-journal: downgrade log message "Unused data (entry_offset==0)"
This happens when journal is rotated after a data is written but before
an entry that linked to the data is not written yet.
This is neither data corruption, nor program error. Let's downgrade the
log level.
Closes #32153.
Diffstat (limited to 'src/libsystemd/sd-journal')
-rw-r--r-- | src/libsystemd/sd-journal/journal-verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 2e09e71574..e852591a89 100644 --- a/src/libsystemd/sd-journal/journal-verify.c +++ b/src/libsystemd/sd-journal/journal-verify.c @@ -163,7 +163,7 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o int r; if (le64toh(o->data.entry_offset) == 0) - warning(offset, "Unused data (entry_offset==0)"); + debug(offset, "Unused data (entry_offset==0)"); if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) { error(offset, "Bad n_entries: %"PRIu64, le64toh(o->data.n_entries)); |