]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
parallels: suppress console output from parallels SDK
authorMaxim Nestratov <mnestratov@parallels.com>
Tue, 26 May 2015 14:57:00 +0000 (17:57 +0300)
committerDmitry Guryanov <dguryanov@parallels.com>
Thu, 28 May 2015 09:58:44 +0000 (12:58 +0300)
It is necessary to have unpolluted screen when connecting to
parallels driver via virsh.
Otherwise a lot of unexpected output one will get on the console.

Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
src/parallels/parallels_sdk.c

index bedee2c5f74bcc35e64df92d5e82b5ecb40ce712..39c200a4746bb8d8c57000a7ccabb66f2bc1e8c0 100644 (file)
@@ -205,6 +205,9 @@ prlsdkInit(void)
 {
     PRL_RESULT ret;
 
+    /* Disable console output */
+    PrlApi_SwitchConsoleLogging(0);
+
     ret = PrlApi_InitEx(PARALLELS_API_VER, PAM_SERVER, 0, 0);
     if (PRL_FAILED(ret)) {
         logPrlError(ret);