[libvirt] [PATCH] daemon: Fix option -v missing info priority log

Ján Tomko jtomko at redhat.com
Mon Aug 25 14:48:15 UTC 2014


On 08/25/2014 02:18 PM, Wang Rui wrote:
> From: Zhou Yimin <zhouyimin at huawei.com>
> 
> Introduce by 63fbcc692.
> 
> When start libvirtd with commandline "/usr/sbin/libvirtd -d -l -v",
> we expect verbose(info level) log if neither environment variable
> nor config file about logging controls is set. But in fact we can't
> get any info priority log in the default output file.
> 
> The log priority of default output is VIR_LOG_DEFAULT(VIR_LOG_WARN),
> so the info log is filtered out.
> To record info priority log we must parse option -v before setting the
> default output.
> 
> After this patch, we get all verbose log in the default output file.
> 
> Signed-off-by: Zhou Yimin <zhouyimin at huawei.com>
> ---
>  daemon/libvirtd.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

ACK and pushed.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140825/0f8ab32c/attachment-0001.sig>


More information about the libvir-list mailing list