Skip to content

Commit

Permalink
Drop log level of header limits log message
Browse files Browse the repository at this point in the history
Especially when using in-memory logging, these are too noisy so
let's drop them back to debug level.

(cherry picked from commit afc47ee)

Related: RHEL-33890
  • Loading branch information
DaanDeMeyer authored and github-actions[bot] committed Jun 11, 2024
1 parent 3e65e81 commit 82231e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/journal/journald-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,9 @@ static void write_to_journal(Server *s, uid_t uid, struct iovec *iovec, size_t n
if (!f)
return;

if (journal_file_rotate_suggested(f->file, s->max_file_usec, LOG_INFO)) {
log_info("%s: Journal header limits reached or header out-of-date, rotating.", f->file->path);
if (journal_file_rotate_suggested(f->file, s->max_file_usec, LOG_DEBUG)) {
log_debug("%s: Journal header limits reached or header out-of-date, rotating.",
f->file->path);
rotate = true;
}
}
Expand Down

0 comments on commit 82231e1

Please sign in to comment.