mirror of
https://github.com/systemd/systemd.git
synced 2026-08-10 17:14:31 +00:00
journactl: show info about journal range only at debug level (#21775)
The message that the "journal begins … ends …" has been always confusing to users. (Beforeb91ae210e6it was "logs begin … end …" which was arguably even more confusing, but really the change inb91ae210e6didn't substantially change this.) When the range shown is limited (by -e, -f, --since, or other options), it doesn't really matter to the user what the oldest entries are, since they are purposefully limiting the range. In fact, if we are showing the last few entries with -e or -f, knowing that many months the oldest entries have is completely useless. And when such options are *not* used, the first entry generally corresponds to the beginning of the range shown, and the last entry corresponds to the end of that range. So again, it's not particularly useful, except when debugging journalctl or such. Let's just treat it as a debug message. Fixes #21491.
This commit is contained in:
committed by
GitHub
parent
285a6908eb
commit
a2d7654f99
@@ -2597,7 +2597,7 @@ int main(int argc, char *argv[]) {
|
||||
if (!arg_follow)
|
||||
pager_open(arg_pager_flags);
|
||||
|
||||
if (!arg_quiet && (arg_lines != 0 || arg_follow)) {
|
||||
if (!arg_quiet && (arg_lines != 0 || arg_follow) && DEBUG_LOGGING) {
|
||||
usec_t start, end;
|
||||
char start_buf[FORMAT_TIMESTAMP_MAX], end_buf[FORMAT_TIMESTAMP_MAX];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user