http增加日志

develop
tanshaolong 2024-09-05 15:30:23 +08:00
parent ab5ab63e6a
commit 3b69fab02f
1 changed files with 6 additions and 2 deletions

View File

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