]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virlog: Introduce virLogFindOutput
authorErik Skultety <eskultet@redhat.com>
Wed, 30 Mar 2016 10:22:15 +0000 (12:22 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 10 Oct 2016 06:27:24 +0000 (08:27 +0200)
commitb5004b09f58ef482b99ca563cc1fdf9bb1eeacd3
tree29e63fbc995a8cae4df95f93917b66c566b99640
parent435200cab4236ef0aa7f0649bebe64615f45a203
virlog: Introduce virLogFindOutput

Outputs are a bit trickier than filters, since the user(config)-specified
set of outputs can contain duplicates. That would lead to logging the same
message twice. For compatibility reasons, we cannot just error out and forbid
the daemon to start if we find duplicate outputs which do not make sense.
Instead, we could silently take into account only the last occurrence of the
duplicate output and remove all the previous ones, so that the logger will not
try to use them when it is looping over all of its registered outputs.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/util/virlog.c
src/util/virlog.h