From 43a7d4ed5b5e0d9ffc6467634670cc87d157c505 Mon Sep 17 00:00:00 2001 From: githubgxll <1094462054@qq.com> Date: Wed, 17 Apr 2024 16:29:15 +0800 Subject: [PATCH] [fix][sdk] Add error log --- .../main/java/io/dingodb/sdk/service/caller/ServiceCaller.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/dingo-sdk/src/main/java/io/dingodb/sdk/service/caller/ServiceCaller.java b/java/dingo-sdk/src/main/java/io/dingodb/sdk/service/caller/ServiceCaller.java index e58a94fd7..feeae9675 100644 --- a/java/dingo-sdk/src/main/java/io/dingodb/sdk/service/caller/ServiceCaller.java +++ b/java/dingo-sdk/src/main/java/io/dingodb/sdk/service/caller/ServiceCaller.java @@ -3,6 +3,7 @@ import io.dingodb.sdk.common.DingoClientException.ExhaustedRetryException; import io.dingodb.sdk.common.DingoClientException.InvalidRouteTableException; import io.dingodb.sdk.common.DingoClientException.RequestErrorException; +import io.dingodb.sdk.service.JsonMessageUtils; import io.dingodb.sdk.service.Caller; import io.dingodb.sdk.service.ChannelProvider; import io.dingodb.sdk.service.Service; @@ -162,6 +163,7 @@ private RuntimeException generateException( throw exception; } else { handler.onNonConnection(request, options, traceId); + log.error(JsonMessageUtils.toJson(name, traceId, request, null, options)); throw new ExhaustedRetryException( "Exec [" + traceId + "] [" + name + "] error, " + "transform leader attempts exhausted." );