提交 839c6de5 编写于 作者: J John Levon

libvirtd: respect LIBVIRT_DEBUG when logging to syslog

上级 1709e1dc
Tue Jan 20 13:35:36 PST 2009 John Levon <john.levon@sun.com>
* qemud/qemud.c: respect LIBVIRT_DEBUG when logging to syslog
Tue Jan 20 22:32:44 CET 2009 Daniel Veillard <veillard@redhat.com>
* src/logging.c: fix openlog() ident lifetime for Solaris
......
......@@ -2356,10 +2356,15 @@ qemudSetLogging(virConfPtr conf, const char *filename) {
*/
GET_CONF_STR (conf, filename, log_outputs);
if (log_outputs == NULL) {
if (godaemon)
virLogParseOutputs("3:syslog:libvirtd");
else
if (godaemon) {
char *tmp = NULL;
if (virAsprintf (&tmp, "%d:syslog:libvirtd", log_level) < 0)
goto free_and_fail;
virLogParseOutputs (tmp);
VIR_FREE (tmp);
} else {
virLogParseOutputs("0:stderr:libvirtd");
}
} else
virLogParseOutputs(log_outputs);
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册