瀏覽代碼

Add logging of network failure during connect

Andrii Danylchenko 3 年之前
父節點
當前提交
550f544592
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      server/CVCMIServer.cpp

+ 1 - 2
server/CVCMIServer.cpp

@@ -301,9 +301,8 @@ void CVCMIServer::connectionAccepted(const boost::system::error_code & ec)
 	}
 	catch(std::exception & e)
 	{
-        (void)e;
+		logNetwork->error("Failure processing new connection! %s", e.what());
 		upcomingConnection.reset();
-		logNetwork->info("I guess it was just my imagination!");
 	}
 
 	startAsyncAccept();