mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
journalctl: honor --quiet when vacuuming (#6771)
'journalctl --vacuum-*' does not suppress output message with --quiet. Let journal_directory_vacuum honors --quiet to fix the problem. BugLink: https://bugs.launchpad.net/bugs/1692188
This commit is contained in:
committed by
Lennart Poettering
parent
c4819961b1
commit
e3695e499a
@@ -2170,7 +2170,7 @@ int main(int argc, char *argv[]) {
|
||||
if (d->is_root)
|
||||
continue;
|
||||
|
||||
q = journal_directory_vacuum(d->path, arg_vacuum_size, arg_vacuum_n_files, arg_vacuum_time, NULL, true);
|
||||
q = journal_directory_vacuum(d->path, arg_vacuum_size, arg_vacuum_n_files, arg_vacuum_time, NULL, !arg_quiet);
|
||||
if (q < 0) {
|
||||
log_error_errno(q, "Failed to vacuum %s: %m", d->path);
|
||||
r = q;
|
||||
|
||||
Reference in New Issue
Block a user