[libvirt] [PATCH v2 00/20] Split parsing and defining logic of daemon's logging

Erik Skultety eskultet at redhat.com
Mon Oct 10 06:55:29 UTC 2016


> Erik Skultety (20):
>   virlog: Rename virLogParse* to virLogParseAndDefine*
>   virlog: Introduce virLogOutputNew
>   virlog: Introduce virLogFilterNew
>   virlog: Introduce virLogFindOutput
>   virlog: Introduce virLogDefineOutputs
>   virlog: Introduce virLogDefineFilters
>   virlog: Introduce virLogNewOutputTo* as a replacement for
>     virLogAddOutputTo*
>   virlog: Take a special care of syslog when setting new set of log
>     outputs
>   virlog: Introduce virLogParseOutput
>   virlog: Introduce virLogParseFilter
>   virlog: Introduce virLogParseOutputs
>   virlog: Introduce virLogParseFilters
>   virlog: Introduce virLogSetOutputs
>   virlog: Introduce virLogSetFilters
>   daemon: Split output parsing and output defining
>   daemon: Split filter parsing and filter defining
>   virlog: Remove functions that aren't used anywhere anymore
>   virlog: Make some of the methods static
>   virlog: Store the journald fd within the output object
>   virlog: Split parsing and setting priority
> 
>  daemon/libvirtd.c         |    8 +-
>  src/libvirt_private.syms  |   10 +-
>  src/locking/lock_daemon.c |    8 +-
>  src/logging/log_daemon.c  |    8 +-
>  src/util/virlog.c         | 1079 ++++++++++++++++++++++++++-------------------
>  src/util/virlog.h         |   61 +--
>  tests/eventtest.c         |    3 +-
>  tests/testutils.c         |   11 +-
>  tests/virlogtest.c        |   10 +-
>  9 files changed, 702 insertions(+), 496 deletions(-)
> 
> -- 
> 2.5.5
> 

So, I made all the requested adjustments, moved patch 19 to in between 1 and 2,
dropped patch 18 completely, kept the introduction of Set{Filters,Outputs} and
actually splitting the logic in separate patches, replaced all the suggested
checks for NULL for ATTRIBUTE_NONNULL, adjusted the callers appropriately and
tested several scenarios to make sure the daemon doesn't crash and pushed the
patches. Anyways, thanks for reviewing the series...aaand brace yourselves -
an increased number of BZs related to logging is coming.

Erik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161010/09b3c4ba/attachment-0001.sig>


More information about the libvir-list mailing list