Ver código fonte

【修复】统一日志打印格式

就是那个锅 4 anos atrás
pai
commit
1806c3eacc

+ 1 - 1
guns-base-support/guns-system/src/main/java/cn/stylefeng/guns/sys/core/error/GlobalExceptionHandler.java

@ -278,7 +278,7 @@ public class GlobalExceptionHandler {
    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
    @ResponseBody
    public ErrorResponseData serverError(Throwable e) {
        log.error(e, ">>> 服务器运行异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), RequestNoContext.get(), e);
        log.error(">>> 服务器运行异常,请求号为:{},具体信息为:{}", RequestNoContext.get(), e.getMessage());
        return renderJson(e);
    }

+ 1 - 1
guns-base-support/guns-system/src/main/java/cn/stylefeng/guns/sys/core/validator/GunsValidator.java

@ -86,7 +86,7 @@ public class GunsValidator extends LocalValidatorFactoryBean {
                }
            }
        } catch (Exception e) {
            log.error("获取参数的id值时候出错:{}", e.getMessage());
            log.error(">>> 获取参数的id值时候出错:{}", e.getMessage());
        }
        return null;