提交 eacb3bb0 编写于 作者: D Daniel P. Berrange

Reduce log level when cgroups aren't mounted

Quite a few hosts don't have cgroups mounted and so see warnings
from libvirt logged, which then cause bug reports, etc. Reduce
the log level to INFO so they're not visible by default

* src/qemu/qemu_driver.c: Reduce log level for cgroups
上级 525434dd
...@@ -1331,7 +1331,7 @@ qemudStartup(int privileged) { ...@@ -1331,7 +1331,7 @@ qemudStartup(int privileged) {
rc = virCgroupForDriver("qemu", &qemu_driver->cgroup, privileged, 1); rc = virCgroupForDriver("qemu", &qemu_driver->cgroup, privileged, 1);
if (rc < 0) { if (rc < 0) {
char buf[1024]; char buf[1024];
VIR_WARN("Unable to create cgroup for driver: %s", VIR_INFO("Unable to create cgroup for driver: %s, disabling cgroups",
virStrerror(-rc, buf, sizeof(buf))); virStrerror(-rc, buf, sizeof(buf)));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册