Skip to content

Commit 43c3e16

Browse files
author
yuguo.dtpe
committed
fix: delete SdkLogger
1 parent a149455 commit 43c3e16

File tree

2 files changed

+0
-136
lines changed

2 files changed

+0
-136
lines changed

volcengine-java-sdk-core/src/main/java/com/volcengine/ApiClient.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ public class ApiClient extends BaseClient{
144144

145145
private final Retryer retryer = DefaultRetryerSetting.DEFAULT_RETRYER;
146146

147-
private static final SdkLogger LOGGER = SdkLogger.getLogger(ApiClient.class);
148-
149147
/*
150148
* Constructor for ApiClient
151149
*/
@@ -174,7 +172,6 @@ public ApiClient() {
174172
interceptorChain.appendRequestInterceptor(new SignRequestInterceptor());
175173

176174
interceptorChain.appendResponseInterceptor(new DeserializedResponseInterceptor());
177-
SdkLogger.enableConsoleOutput(java.util.logging.Level.WARNING);
178175
}
179176

180177
/**
@@ -476,11 +473,9 @@ public ApiClient setDebugging(boolean debugging) {
476473
loggingInterceptor = new HttpLoggingInterceptor();
477474
loggingInterceptor.setLevel(Level.BODY);
478475
httpClient.interceptors().add(loggingInterceptor);
479-
SdkLogger.enableConsoleOutput(java.util.logging.Level.ALL);
480476
} else {
481477
httpClient.interceptors().remove(loggingInterceptor);
482478
loggingInterceptor = null;
483-
SdkLogger.enableConsoleOutput(java.util.logging.Level.WARNING);
484479
}
485480
}
486481
this.debugging = debugging;
@@ -1064,7 +1059,6 @@ private boolean requestShouldRetry(ApiResponse apiResponse, int retryCount, ApiE
10641059
if (autoRetry && retryer.shouldRetry(apiResponse, retryCount, lastException)) {
10651060
try {
10661061
long delay = retryer.getBackoffDelay(retryCount);
1067-
LOGGER.debug("retryCount: " + (retryCount + 1) + ", delay: " + delay + ", backoffStrategy: " + retryer.getBackoffStrategy().getClass().getName());
10681062
Thread.sleep(delay);
10691063
} catch (Exception e) {
10701064
throw new ApiException(e);

volcengine-java-sdk-core/src/main/java/com/volcengine/SdkLogger.java

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)