From: Bryan Duxbury Date: Thu, 25 Aug 2011 17:30:21 +0000 (+0000) Subject: THRIFT-1292. cpp: silence log spew from TThreadedServer X-Git-Tag: 0.8.0~124 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=756d73e464e74807f896f160615d5af2117e24a7;p=common%2Fthrift.git THRIFT-1292. cpp: silence log spew from TThreadedServer Patch: Adam Simpkins git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161659 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/server/TThreadedServer.cpp b/lib/cpp/src/server/TThreadedServer.cpp index 11718cac..b1ef1e02 100644 --- a/lib/cpp/src/server/TThreadedServer.cpp +++ b/lib/cpp/src/server/TThreadedServer.cpp @@ -71,8 +71,10 @@ public: } } } catch (TTransportException& ttx) { - string errStr = string("TThreadedServer client died: ") + ttx.what(); - GlobalOutput(errStr.c_str()); + if (ttx.getType() != TTransportException::END_OF_FILE) { + string errStr = string("TThreadedServer client died: ") + ttx.what(); + GlobalOutput(errStr.c_str()); + } } catch (TException& x) { string errStr = string("TThreadedServer exception: ") + x.what(); GlobalOutput(errStr.c_str());