fishy commented on pull request #1992:
URL: https://github.com/apache/thrift/pull/1992#issuecomment-705800456


   >For example: some your endpoints starts return internal errors. You do not 
have middlewares, you haven't added any logging to thrift handler. What will 
you do? Do hotfix on production and add logger?)
   
   How did they start to return internal errors? If it's panic, the log will 
automatically have the stack trace so you know on which line it panicked. If 
it's an error returned by your handler code, sure you know why you would return 
an error there?
   
   Please pardon my lack of imagination, but the only situation I can imagine 
that logging the whole request would help, is that there are some corner case 
from the input you didn't handle well, like having problem to handle negative 
number for an unsigned int, or having problems with string input being too 
short. But even in those cases, logging the callstack at the time you return 
error/panic are usually much more useful than having the whole request logged.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to