opt:日志优化

This commit is contained in:
zhangzq
2025-02-20 10:59:34 +08:00
parent 438e2c117b
commit 99e96d4026

View File

@@ -130,7 +130,7 @@ public class LogAspect {
if (ex instanceof BadRequestException){ if (ex instanceof BadRequestException){
throw ex; throw ex;
}else { }else {
throw new BadRequestException("系统繁忙,请联系管理员确认,后再试"); throw new BadRequestException("系统繁忙,请联系管理员确认,后再试");
} }
} finally { } finally {
log.info("[--response--][请求接口:{} 执行结束][耗时:{}s]", url, (System.currentTimeMillis() - comming) / 1000); log.info("[--response--][请求接口:{} 执行结束][耗时:{}s]", url, (System.currentTimeMillis() - comming) / 1000);