]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemon: Fix option -v missing info priority log
authorZhou Yimin <zhouyimin@huawei.com>
Mon, 25 Aug 2014 12:18:01 +0000 (20:18 +0800)
committerJán Tomko <jtomko@redhat.com>
Mon, 25 Aug 2014 14:40:20 +0000 (16:40 +0200)
commit9eac73eb846ae5d4d9c44f80cf8de607c113bd72
treed5e4e75ef76219dcf02ea17152c8aefff426222a
parentd60c33c6b5f84eb1468054374f5272189477f713
daemon: Fix option -v missing info priority log

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@huawei.com>
daemon/libvirtd.c