|
@@ -141,7 +141,9 @@ public class ServiceExceptionHandler {
|
|
|
/*
|
|
|
* 系统内部异常,打印异常栈
|
|
|
*/
|
|
|
- log.error("Error: handleBadRequest StackTrace : {}", ThrowableUtils.getStackTrace(e));
|
|
|
+ if (log.isErrorEnabled()) {
|
|
|
+ log.error("Error: handleBadRequest StackTrace : {}", ThrowableUtils.getStackTrace(e));
|
|
|
+ }
|
|
|
if (e instanceof MethodArgumentTypeMismatchException) {
|
|
|
resp.setStatus(301);
|
|
|
return ApiResult.failed("请求参数错误");
|