http增加日志
parent
ab5ab63e6a
commit
3b69fab02f
|
@ -37,7 +37,9 @@ public class TyHttpUtils {
|
||||||
headersOfAuth.put("hybrid-date", hybridDate);
|
headersOfAuth.put("hybrid-date", hybridDate);
|
||||||
String requestId = UUID.randomUUID().toString().replace("-", "");
|
String requestId = UUID.randomUUID().toString().replace("-", "");
|
||||||
headersOfAuth.put("ctyun-hybrid-request-id", requestId);
|
headersOfAuth.put("ctyun-hybrid-request-id", requestId);
|
||||||
logger.info("--------------------", requestId);
|
logger.info("----------------------------------------------------------");
|
||||||
|
logger.info(requestId);
|
||||||
|
logger.info("----------------------------------------------------------");
|
||||||
String forSignature = forSignature(method, headersOfAuth, params);
|
String forSignature = forSignature(method, headersOfAuth, params);
|
||||||
byte[] kdate = kdate(hybridDate, accessKey, secretKey);
|
byte[] kdate = kdate(hybridDate, accessKey, secretKey);
|
||||||
byte[] signatureBytes = HmacSHA256Util.hmacSHA256(forSignature.getBytes(StandardCharsets.UTF_8), kdate);
|
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("Content-Type", "application/json");
|
||||||
newHeaders.put("hybrid-date", hybridDate);
|
newHeaders.put("hybrid-date", hybridDate);
|
||||||
newHeaders.put("ctyun-hybrid-request-id", requestId);
|
newHeaders.put("ctyun-hybrid-request-id", requestId);
|
||||||
logger.info("--------------------", requestId);
|
logger.info("----------------------------------------------------------");
|
||||||
|
logger.info(requestId);
|
||||||
|
logger.info("----------------------------------------------------------");
|
||||||
newHeaders.put("Hybrid-Authorization", authorization);
|
newHeaders.put("Hybrid-Authorization", authorization);
|
||||||
newHeaders.put("ctUserId", ctUserId);
|
newHeaders.put("ctUserId", ctUserId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue