diff --git a/yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/log/AspectLogStart.java b/yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/log/AspectLogStart.java index 8b62c0b4993754a0c5562fa8a168b6991586f7ba..0fe11d4c7c923119cc4572144543f1b4ce2a0444 100644 --- a/yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/log/AspectLogStart.java +++ b/yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/log/AspectLogStart.java @@ -42,11 +42,9 @@ public class AspectLogStart { try { String fullUrl = String.format("%s:%s", tag, url); logCountTime.start(fullUrl); - String body = aspectLogBody.getBodyString(requestBody); - if (logFlag) { - this.logLocal.startLog(log, tag, String.format("%s:%s", this.cloudConfig.getApplicationName(), url), body); - } + this.logLocal.startLog(log, tag, String.format("%s:%s", this.cloudConfig.getApplicationName(), url), body); + boolean isLog = logFlag && this.cloudConfig.isLogCommon(); if (isLog) { Log.info(cls, " %s [ %s ] request: %s", tag, url, body);