调整日志类型

This commit is contained in:
2026-04-25 13:42:50 +08:00
parent 47d9056034
commit 4715f47476

View File

@@ -170,7 +170,7 @@ public class GlobalControllerExceptionHandler implements BaseParams {
*/
@ExceptionHandler(UnauthorizedError.class)
public Result<Object> handleUnauthorizedErrorException(UnauthorizedError e) {
errorLog(LogLevel.ERROR, LogBusBaseType.HTTP_REQUEST, "认证异常", e);
errorLog(LogLevel.ERROR, LogBusBaseType.CONTROLLER, "认证异常", e);
return new Result<>(ResultType.UNAUTHORIZED, null);
}
@@ -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, false);
errorLog(LogLevel.WARN, LogBusBaseType.CONTROLLER, "请求方法不支持", e, false);
return new Result<>(ResultType.METHOD_NOT_ALLOWED, null);
}
@@ -194,7 +194,7 @@ public class GlobalControllerExceptionHandler implements BaseParams {
*/
@ExceptionHandler(NoResourceFoundException.class)
public Result<Object> handleNoResourceFoundException(NoResourceFoundException e) {
errorLog(LogLevel.WARN, LogBusBaseType.HTTP_REQUEST, "资源未找到", e, false);
errorLog(LogLevel.WARN, LogBusBaseType.CONTROLLER, "资源未找到", e, false);
return new Result<>(ResultType.NOT_FOUND, null);
}
@@ -205,7 +205,7 @@ public class GlobalControllerExceptionHandler implements BaseParams {
*/
@ExceptionHandler(ClientAbortException.class)
public void handleClientAbortException(ClientAbortException e) {
errorLog(LogLevel.WARN, LogBusBaseType.HTTP_REQUEST, "客户端提前断开连接", e, false);
errorLog(LogLevel.WARN, LogBusBaseType.CONTROLLER, "客户端提前断开连接", e, false);
}
/**