Author: dreiss
Date: Tue Mar  9 05:19:43 2010
New Revision: 920672

URL: http://svn.apache.org/viewvc?rev=920672&view=rev
Log:
cpp: Log unexpected exceptions in TThreadPoolServer

Modified:
    incubator/thrift/trunk/lib/cpp/src/server/TThreadPoolServer.cpp

Modified: incubator/thrift/trunk/lib/cpp/src/server/TThreadPoolServer.cpp
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/server/TThreadPoolServer.cpp?rev=920672&r1=920671&r2=920672&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/server/TThreadPoolServer.cpp (original)
+++ incubator/thrift/trunk/lib/cpp/src/server/TThreadPoolServer.cpp Tue Mar  9 
05:19:43 2010
@@ -72,6 +72,9 @@ public:
     } catch (std::exception &x) {
       string errStr = string("TThreadPoolServer, std::exception: ") + x.what();
       GlobalOutput(errStr.c_str());
+    } catch (...) {
+      GlobalOutput("TThreadPoolServer, unexpected exception in "
+                   "TThreadPoolServer::Task::run()");
     }
 
     if (eventHandler != NULL) {


Reply via email to