• E
    daemon: logging: Fix --verbose option being ignored by the daemon · b988f794
    Erik Skultety 提交于
    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=1442947Signed-off-by: NErik Skultety <eskultet@redhat.com>
    b988f794
log_daemon.c 32.4 KB