+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
*/
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;