thrift icon indicating copy to clipboard operation
thrift copied to clipboard

THRIFT-5502: Log SocketException at WARN level only

Open slachiewicz opened this issue 2 years ago • 3 comments

and proposition to move logging to one place

slachiewicz avatar May 18 '22 19:05 slachiewicz

and proposition to move logging to one place

Why?

ctubbsii avatar May 18 '22 21:05 ctubbsii

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

slachiewicz avatar May 21 '22 14:05 slachiewicz

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.

ctubbsii avatar May 21 '22 18:05 ctubbsii