You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/08/25 19:30:21 UTC
svn commit: r1161659 - /thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp
Author: bryanduxbury
Date: Thu Aug 25 17:30:21 2011
New Revision: 1161659
URL: http://svn.apache.org/viewvc?rev=1161659&view=rev
Log:
THRIFT-1292. cpp: silence log spew from TThreadedServer
Patch: Adam Simpkins
Modified:
thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp
Modified: thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp?rev=1161659&r1=1161658&r2=1161659&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp (original)
+++ thrift/trunk/lib/cpp/src/server/TThreadedServer.cpp Thu Aug 25 17:30:21 2011
@@ -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());