1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-11 04:58:19 +03:00

journalctl: rotation is not a reason to warn, but certainly noteworthy

Downgrade the phrasing, since it is a bit misleading.

Fixes: #18465
(cherry picked from commit 71311efe2377d7e37a6af76f110882eed2332f4e)
(cherry picked from commit 884202fc1dcf1600c801ca68311530feee2fc1c2)
This commit is contained in:
Lennart Poettering 2021-02-15 23:31:54 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 4c1a77ebef
commit b0877d38a9

View File

@ -1373,7 +1373,7 @@ int show_journal(
if (line == 0 && noaccess) if (line == 0 && noaccess)
fprintf(f, "Warning: some journal files were not opened due to insufficient permissions."); fprintf(f, "Warning: some journal files were not opened due to insufficient permissions.");
else if (!noaccess) else if (!noaccess)
fprintf(f, "Warning: journal has been rotated since unit was started, output may be incomplete.\n"); fprintf(f, "Notice: journal has been rotated since unit was started, output may be incomplete.\n");
else else
fprintf(f, "Warning: journal has been rotated since unit was started and some journal " fprintf(f, "Warning: journal has been rotated since unit was started and some journal "
"files were not opened due to insufficient permissions, output may be incomplete.\n"); "files were not opened due to insufficient permissions, output may be incomplete.\n");