]> sourceware.org Git - lvm2.git/commit
log: also pass log_print through report and add log_print_bypass_report for use in...
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 19 May 2016 10:19:48 +0000 (12:19 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 20 Jun 2016 09:33:42 +0000 (11:33 +0200)
commitf50d4011cdd3ef38c15b9dea05e73321592d93c2
treed3231d97b4f24232bf19a70b1429814264426c22
parentfe63715f25cf156b07e144a2e7b5cce56d32e39e
log: also pass log_print through report and add log_print_bypass_report for use in libdm-report for direct print without report

log_print is used during cmd line processing to log the result of the
operation (e.g. "Volume group vg successfully changed" and similar).

We don't want output from log_print to be interleaved with current
reports from group where log is reported as well. Also, the information
printed by log_print belongs to the log report too, so it should be
rerouted to log report if it's set.

Since the code in libdm-report which is responsible for doing the report
output uses log_print too, we need to use a different kind of log_print
which bypasses any log report currently used for logging (...simply,
we can't call log_print to output the log report itself which in turn
would again reroute to report - the report would never get on output
this way).
WHATS_NEW
WHATS_NEW_DM
lib/log/log.c
lib/log/log.h
libdm/libdm-common.c
libdm/libdm-report.c
This page took 0.030077 seconds and 5 git commands to generate.