From: David Reiss Date: Tue, 9 Mar 2010 05:19:43 +0000 (+0000) Subject: cpp: Log unexpected exceptions in TThreadPoolServer X-Git-Tag: 0.3.0~87 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=58e4d2c6e3b237825b573116d4e06781733ab5f5;p=common%2Fthrift.git cpp: Log unexpected exceptions in TThreadPoolServer git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920672 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/server/TThreadPoolServer.cpp b/lib/cpp/src/server/TThreadPoolServer.cpp index 0894cfa5..6eea3dbd 100644 --- a/lib/cpp/src/server/TThreadPoolServer.cpp +++ b/lib/cpp/src/server/TThreadPoolServer.cpp @@ -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) {