thrift
thrift copied to clipboard
THRIFT-5502: Log SocketException at WARN level only
and proposition to move logging to one place
and proposition to move logging to one place
Why?
instead of the private method isIgnorableException we can just have a method to log proper message and add mentioned in THRIFT-5502 ignore for specific Socket exceptions. if not this way - please suggest how this ticket should be solved
and proposition to move logging to one place
I misunderstood this. I thought you were removing duplicate code and consolidating into a single method, but it didn't make sense, since this code is only called once.
What you're actually doing is combining the exception handling logic, so it's all handled in one place. That makes sense to me now.