mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
journalctl: skip informational messages in export/json modes
This commit is contained in:
parent
44386fc156
commit
edfb521a21
@ -193,10 +193,17 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
case 'o':
|
||||
arg_output = output_mode_from_string(optarg);
|
||||
if (arg_output < 0) {
|
||||
log_error("Unknown output '%s'.", optarg);
|
||||
log_error("Unknown output format '%s'.", optarg);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (arg_output == OUTPUT_EXPORT ||
|
||||
arg_output == OUTPUT_JSON ||
|
||||
arg_output == OUTPUT_JSON_PRETTY ||
|
||||
arg_output == OUTPUT_JSON_SSE ||
|
||||
arg_output == OUTPUT_CAT)
|
||||
arg_quiet = true;
|
||||
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
|
Loading…
x
Reference in New Issue
Block a user