• P
    daemon: Limit default log level to journald to VIR_LOG_INFO · c018efa8
    Peter Krempa 提交于
    Libvirt is really chatty when the DEBUG log level is enabled. When a
    host uses journald we'd enable debug logging to journald when only
    specifying the debug log level. As journald may employ rate throttling
    this would lock up the daemon until it's able to flush all debug
    messages.
    
    This patch changes the default log level to VIR_LOG_INFO when using the
    default (unconfigured) log output to journald.
    
    To still allow debug logging to journald the user now has to explicitly
    specify journald as a log output with priority 1 in the "log_outputs"
    configuration option. This patch also changes the config file template
    to be explicit about this change and notify the user about the possible
    consequence of debug logging into journald.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1121955
    c018efa8
libvirtd.c 45.5 KB