Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
Description
Thrift exceptions are somewhat difficult to trace from debug logs. I'd like to add _FILEANDLINE_ as a second parameter to some exceptions to make them easier to find.
For example:
Every time a required field is not set, the exception that gets generated is a very generic
throw TProtocolException(TProtocolException::INVALID_DATA)
I think I'll start with patching up TProtocolExcpetion in the compiler and if people like this I can make a separate issue and patch for other exceptions
Attachments
Issue Links
- is cloned by
-
THRIFT-3363 Reporting a missing required field (TProtocolException::INVALID_DATA) to the client is not informative enough
- Open
-
THRIFT-4198 Ruby should log Thrift internal errors to global logger
- Closed