feat: 添加相关接口日志
This commit is contained in:
parent
9c0f533aff
commit
e2ab5bcb13
|
|
@ -125,6 +125,7 @@ public class BaseByteApiService {
|
|||
.header("Authorization", signed.authorization)
|
||||
.post(requestBody)
|
||||
.build();
|
||||
log.info("向火山发送请求, body = {}", body);
|
||||
try (Response response = httpClient.newCall(okRequest).execute()) {
|
||||
if (responseClass == null) {
|
||||
return null;
|
||||
|
|
@ -133,6 +134,7 @@ public class BaseByteApiService {
|
|||
if (!response.isSuccessful()) {
|
||||
throw new IOException("HTTP " + response.code() + ": " + respBody);
|
||||
}
|
||||
log.info("返回结果, respBody = {}", respBody);
|
||||
return parseResult(respBody, responseClass);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue