http增加日志

develop
tanshaolong 2024-09-05 15:25:00 +08:00
parent 42b86a9f1d
commit ab5ab63e6a
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public class TyHttpUtils {
headersOfAuth.put("hybrid-date", hybridDate);
String requestId = UUID.randomUUID().toString().replace("-", "");
headersOfAuth.put("ctyun-hybrid-request-id", requestId);
logger.info("--------------------", requestId);
String forSignature = forSignature(method, headersOfAuth, params);
byte[] kdate = kdate(hybridDate, accessKey, secretKey);
byte[] signatureBytes = HmacSHA256Util.hmacSHA256(forSignature.getBytes(StandardCharsets.UTF_8), kdate);
@ -49,6 +50,7 @@ public class TyHttpUtils {
newHeaders.put("Content-Type", "application/json");
newHeaders.put("hybrid-date", hybridDate);
newHeaders.put("ctyun-hybrid-request-id", requestId);
logger.info("--------------------", requestId);
newHeaders.put("Hybrid-Authorization", authorization);
newHeaders.put("ctUserId", ctUserId);