Merge branch 'refs/heads/REQ-2324' into feature/merged_all_req
This commit is contained in:
commit
8e53c29f45
@ -67,19 +67,7 @@ public class ErrorReportAspect implements Ordered {
|
|||||||
watch.start(signature.toShortString());
|
watch.start(signature.toShortString());
|
||||||
Object result = joinPoint.proceed();
|
Object result = joinPoint.proceed();
|
||||||
watch.stop();
|
watch.stop();
|
||||||
String params = "";
|
log.info("StopWatch '{}': running time = {} 's", watch.getLastTaskName(), watch.getTotalTimeSeconds());
|
||||||
String resultStr = "";
|
|
||||||
Object[] args = joinPoint.getArgs();
|
|
||||||
if (args != null && args.length > 0) {
|
|
||||||
try {
|
|
||||||
params = Arrays.stream(args).map(JSONUtil::toJsonStr).collect(Collectors.joining(","));
|
|
||||||
resultStr = JSONUtil.toJsonStr(result);
|
|
||||||
} catch (Exception e) {
|
|
||||||
params = "参数转换JSON字符串异常:" + e.getMessage();
|
|
||||||
resultStr = "参数转换JSON字符串异常:" + e.getMessage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
log.info("StopWatch '{}',params:{},result:{}: running time = {} 's", watch.getLastTaskName(), watch.getTotalTimeSeconds(), params, resultStr);
|
|
||||||
|
|
||||||
if (!signature.toShortString().contains("ExtAxApiLogServiceImpl")) {
|
if (!signature.toShortString().contains("ExtAxApiLogServiceImpl")) {
|
||||||
String type = getType(joinPoint);
|
String type = getType(joinPoint);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user