diff options
author | Peter Krempa <pkrempa@redhat.com> | 2016-04-27 12:58:13 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2016-04-28 09:25:32 +0200 |
commit | 63e2b766a5a704eb19b8bdaeb1cf0fa91f990cb8 (patch) | |
tree | 396068e3b96c69c62df44dbbf9f986428b9f4d14 | |
parent | d294f6b0dff7df254e9e0e8e27ce00f1dcc9271e (diff) | |
download | libvirt-63e2b766a5a704eb19b8bdaeb1cf0fa91f990cb8.tar.gz |
qemu: conf: Set default logging approach in virQEMUDriverConfigNew
Instead of setting the default qemu stdio logging approach in
virQEMUDriverConfigLoadFile set it in virQEMUDriverConfigNew so that
it's properly set even when the config is not present.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1325075
-rw-r--r-- | src/qemu/qemu_conf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 77ef4fe3ad..5ed5776a45 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -324,6 +324,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged) cfg->seccompSandbox = -1; cfg->logTimestamp = true; + cfg->stdioLogD = true; #ifdef DEFAULT_LOADER_NVRAM if (virQEMUDriverConfigLoaderNVRAMParse(cfg, DEFAULT_LOADER_NVRAM) < 0) @@ -812,8 +813,6 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg, goto cleanup; } VIR_FREE(stdioHandler); - } else { - cfg->stdioLogD = true; } GET_VALUE_ULONG("max_queued", cfg->maxQueuedJobs); |