Thrift error logging improvements
authorDavid Reiss <dreiss@apache.org>
Tue, 8 Apr 2008 06:26:05 +0000 (06:26 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 8 Apr 2008 06:26:05 +0000 (06:26 +0000)
commit9b20955b2d4f651eaaec63736cb8aeaaed011be7
tree3bc7f4fda44427162df055907322093616dc11f4
parent22b1886dc7e4069e8cf838ebf7816a7ab697d091
Thrift error logging improvements

Summary: - Move strerror_s to Thrift.h (was previously in TTransportException.h)
         - Capture errno as soon as syscall returns failure and make it part of error message.
         - Cleaned up several instances of the wrong error value being printed.
         - More consistently pass the errno in the TTransport Exception
         - Add more consistent error logging for the various transport failure modes

Reviewed By: dreiss

Test Plan: - compile everything.
           - test on search tier

Revert: OK

TracCamp Project: Thrift

DiffCamp Revision: 11077

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665648 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/Thrift.cpp
lib/cpp/src/Thrift.h
lib/cpp/src/server/TNonblockingServer.cpp
lib/cpp/src/server/TNonblockingServer.h
lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TServerSocket.cpp
lib/cpp/src/transport/TSocket.cpp
lib/cpp/src/transport/TSocket.h
lib/cpp/src/transport/TTransportException.cpp
lib/cpp/src/transport/TTransportException.h