mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-31 05:47:43 +03:00
8281f7c111
log/command_log_report config setting defaults to 1 now if json or json_std output format is used (either by setting report/output_format config setting or using --reportformat cmd line arg). This means that if we use json/json_std output format, the command log messages are then part of the json output too, not interleaved as unstructured text mixed with the json output. If log/command_log_report is set explicitly in the config, then we still respect that, no matter what output format is used currently. In this case, users can still separate and redirect the output by using LVM_OUT_FD, LVM_ERR_FD and LVM_REPORT_FD so that the different types do not interleave with the json/json_std output.