调整日志打印策略

This commit is contained in:
2026-04-25 13:24:31 +08:00
parent a922be95c2
commit 47d9056034

View File

@@ -182,7 +182,7 @@ public class GlobalControllerExceptionHandler implements BaseParams {
*/
@ExceptionHandler(HttpRequestMethodNotSupportedException.class)
public Result<Object> handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) {
errorLog(LogLevel.WARN, LogBusBaseType.HTTP_REQUEST, "请求方法不支持", e);
errorLog(LogLevel.WARN, LogBusBaseType.HTTP_REQUEST, "请求方法不支持", e, false);
return new Result<>(ResultType.METHOD_NOT_ALLOWED, null);
}