Skip to content

Commit 28f94c1

Browse files
committed
fix logger for unwrapped exceptions
1 parent e04921d commit 28f94c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/http/InternalLoggerMiddlewareImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ public CompletableFuture<ApiHttpResponse<byte[]>> invoke(final ApiHttpRequest re
109109
requestContext.ifPresent(c -> MDC.setContextMap(c.getValue()));
110110
Throwable cause = throwable instanceof CompletionException ? throwable.getCause() : throwable;
111111
if (cause instanceof ApiHttpException) {
112-
final ApiHttpResponse<byte[]> errorResponse = ((ApiHttpException) throwable.getCause())
113-
.getResponse();
112+
final ApiHttpResponse<byte[]> errorResponse = ((ApiHttpException) cause).getResponse();
114113
final Level level = exceptionLogEvents.entrySet()
115114
.stream()
116115
.filter(classLevelEntry -> classLevelEntry.getKey()

0 commit comments

Comments
 (0)