[libvirt] [PATCH 2/2] daemon: Limit default log level to journald to VIR_LOG_INFO
Eric Blake
eblake at redhat.com
Tue Aug 12 16:26:02 UTC 2014
On 08/12/2014 08:34 AM, Peter Krempa wrote:
> 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 journad the user now has to explicitly
s/journad/journald/
>
> + /* By default we don't want to log too much stuff into journald as
> + * it may employ rate limiting and thus blocking libvirt execution.
s/blocking/block/
> +++ b/daemon/libvirtd.conf
> @@ -309,6 +309,10 @@
>
> # Logging level: 4 errors, 3 warnings, 2 information, 1 debug
> # basically 1 will log everything possible
> +# Note: Journald may employ rate limiting of the messages logged
> +# and thus lock up the libvirt daemon. To use the debug level with
> +# journald you have to specify it explicitly in 'log_outputs' otherwise
s/ otherwise/, otherwise/
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140812/728ecd00/attachment-0001.sig>
More information about the libvir-list
mailing list