This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit ce0b4fed6da72c173386d63dd7a9be8f2a38f2eb
Author: Lei Zhang <[email protected]>
AuthorDate: Thu Jan 25 18:22:42 2024 +0800

    [feat](log) Update RestApiExceptionHandler log level from debug to warn 
(#30306)
    
    * When meeting RestApiExceptionHandler, we have insufficient information
      for finding out the call stack
---
 .../apache/doris/httpv2/exception/RestApiExceptionHandler.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/exception/RestApiExceptionHandler.java
 
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/exception/RestApiExceptionHandler.java
index 1acd7bae1d3..11993027a86 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/httpv2/exception/RestApiExceptionHandler.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/httpv2/exception/RestApiExceptionHandler.java
@@ -37,28 +37,28 @@ public class RestApiExceptionHandler {
     @ExceptionHandler(UnauthorizedException.class)
     @ResponseBody
     public Object unauthorizedHandler(UnauthorizedException e) {
-        LOG.debug("unauthorized exception", e);
+        LOG.warn("unauthorized exception", e);
         return ResponseEntityBuilder.unauthorized(e.getMessage());
     }
 
     @ExceptionHandler(UserException.class)
     @ResponseBody
     public Object userExceptionHandler(UserException e) {
-        LOG.debug("user exception", e);
+        LOG.warn("user exception", e);
         return ResponseEntityBuilder.ok(e.getMessage());
     }
 
     @ExceptionHandler(BadRequestException.class)
     @ResponseBody
     public Object badRequestExceptionHandler(BadRequestException e) {
-        LOG.debug("bad request exception", e);
+        LOG.warn("bad request exception", e);
         return ResponseEntityBuilder.badRequest(e.getMessage());
     }
 
     @ExceptionHandler(Exception.class)
     @ResponseBody
     public Object unexpectedExceptionHandler(Exception e) {
-        LOG.debug("unexpected exception", e);
+        LOG.warn("unexpected exception", e);
         return ResponseEntityBuilder.internalError(e.getMessage());
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to