libvirt/src/logging
Erik Skultety b988f794e3 daemon: logging: Fix --verbose option being ignored by the daemon
Commit 94c465d0 refactored the logging setup phase but introduced an
issue, where the daemon ignores verbose mode when there are no outputs
defined and the default must be used. The problem is that the default
output was determined too early, thus ignoring the potential '--verbose'
option taking effect. This patch postpones the creation of the default
output to the very last moment when nothing else can change. Since the
default output is only created during the init phase, it's safe to leave
the pointer as NULL for a while, but it will be set eventually, thus not
affecting runtime.
Patch also adjusts both the other daemons.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1442947

Signed-off-by: Erik Skultety <eskultet@redhat.com>
2017-08-28 16:42:13 +02:00
..
log_daemon_config.c log: Fix loading of conf file for log daemon 2016-12-14 07:24:24 +01:00
log_daemon_config.h virtlogd: convert to typedef virConf accessors 2016-07-12 09:58:21 +01:00
log_daemon_dispatch.c log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_daemon_dispatch.h
log_daemon.c daemon: logging: Fix --verbose option being ignored by the daemon 2017-08-28 16:42:13 +02:00
log_daemon.h logging: avoid variables called 'daemon' due to function clash 2015-11-27 09:27:53 +00:00
log_handler.c virtlogd: make max file size & number of backups configurable 2016-07-07 15:08:54 +01:00
log_handler.h virtlogd: make max file size & number of backups configurable 2016-07-07 15:08:54 +01:00
log_manager.c log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_manager.h log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_protocol.x log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
test_virtlogd.aug.in virtlogd: make max file size & number of backups configurable 2016-07-07 15:08:54 +01:00
virtlogd.aug virtlogd: make max file size & number of backups configurable 2016-07-07 15:08:54 +01:00
virtlogd.conf virtlogd: increase max file size to 2 MB 2016-07-07 15:08:54 +01:00
virtlogd.init.in Fix LSB requirements in service script and sync them 2016-01-11 15:49:13 +01:00
virtlogd.pod man: Fix documentation errors about the paths of the config files 2017-06-28 11:07:08 +02:00
virtlogd.service.in Increase default file handle limits for daemons 2017-03-16 10:48:09 +00:00
virtlogd.socket.in virtlogd: Don't stop or restart along with libvirtd 2016-09-20 15:22:04 +02:00
virtlogd.sysconf