opt:日志优化

This commit is contained in:
zhangzq
2025-02-20 14:34:20 +08:00
parent 6bb5ecf316
commit b70d1f0340

View File

@@ -122,7 +122,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);