Make synfigstudio less verbose when connecting to previous instances
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 11 Mar 2007 10:25:17 +0000 (10:25 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 11 Mar 2007 10:25:17 +0000 (10:25 +0000)
git-svn-id: http://svn.voria.com/code@296 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/ipc.cpp

index 89813e9..d9e3f98 100644 (file)
@@ -307,7 +307,11 @@ IPC::make_connection()
        );
        if(pipe_handle==INVALID_HANDLE_VALUE)
        {
-               synfig::warning("IPC::make_connection(): Unable to connect to previous instance. GetLastError=%d",GetLastError());
+               DWORD error = GetLastError();
+#ifndef _DEBUG
+               if( error != ERROR_FILE_NOT_FOUND )
+#endif
+                       synfig::warning("IPC::make_connection(): Unable to connect to previous instance. GetLastError=%d",error);
        }
        int fd=_open_osfhandle(reinterpret_cast<long int>(pipe_handle),_O_APPEND|O_WRONLY);
 #else
@@ -324,7 +328,9 @@ IPC::make_connection()
        if(fd>=0)
                ret=SmartFILE(fdopen(fd,"w"));
 
+#ifdef _DEBUG
        synfig::info("uplink fd=%d",fd);
+#endif
 
        return ret;
 }