return ret;
}
+static void virshErrorHandler(void *opaque ATTRIBUTE_UNUSED, virErrorPtr err ATTRIBUTE_UNUSED)
+{
+ /* Don't do anything, since logging infrastructure already
+ * took care of reporting the error */
+}
+
static struct qemud_server *qemudInitialize(int sigread) {
struct qemud_server *server;
if (remoteReadConfigFile (server, remote_config_file) < 0)
goto error2;
+ /* Disable error func, now logging is setup */
+ virSetErrorFunc(NULL, virshErrorHandler);
+
if (virEventAddHandleImpl(sigpipe[0],
VIR_EVENT_HANDLE_READABLE,
qemudDispatchSignalEvent,