Merge pull request #2149 from theonefx/master

Use the sentinel in a safe way
pull/2151/head
TheoneFx 4 years ago committed by GitHub
commit 524ccd8148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,7 +93,7 @@ public class SentinelProtectInterceptor implements ClientHttpRequestInterceptor
return handleBlockException(request, body, execution, (BlockException) e); return handleBlockException(request, body, execution, (BlockException) e);
} }
else { else {
Tracer.trace(e); Tracer.traceEntry(e, hostEntry);
if (e instanceof IOException) { if (e instanceof IOException) {
throw (IOException) e; throw (IOException) e;
} }

@ -109,7 +109,7 @@ public class SentinelInvocationHandler implements InvocationHandler {
catch (Throwable ex) { catch (Throwable ex) {
// fallback handle // fallback handle
if (!BlockException.isBlockException(ex)) { if (!BlockException.isBlockException(ex)) {
Tracer.trace(ex); Tracer.traceEntry(ex, entry);
} }
if (fallbackFactory != null) { if (fallbackFactory != null) {
try { try {

Loading…
Cancel
Save