journalctl: show duplicate entries if they are from the same file (#14898)
authorGeorg Müller <georgmueller@gmx.net>
Thu, 20 Feb 2020 18:19:41 +0000 (19:19 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Mar 2020 13:26:26 +0000 (14:26 +0100)
commitd25598854dd7f517db160b5e377d379e34e72f28
tree20d0e32151de54d7283a54bcc85a0d02c0be0247
parent037a0fa5d06db080b8b5d1ae96ce067ee207f335
journalctl: show duplicate entries if they are from the same file (#14898)

When having a service which intentionally outputs multiple equal lines,
all these messages might be inserted with the same timestamp.

journalctl has a mechanism to avoid duplicate lines, which might be in
different journal files.

This patch allows duplicate lines, if they are from the same file.

(cherry picked from commit b6849042d610da90d5821a03967d648d424f7864)
(cherry picked from commit 2867dfbf70a5d761f662fe4b7c81a67e19df008b)
src/journal/sd-journal.c