cxzl25 commented on code in PR #4977:
URL: https://github.com/apache/kyuubi/pull/4977#discussion_r1233491017


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/api.scala:
##########
@@ -39,18 +40,19 @@ private[api] trait ApiRequestContext {
 }
 
 @Provider
-class RestExceptionMapper extends ExceptionMapper[Exception] {
+class RestExceptionMapper extends ExceptionMapper[Exception] with Logging {
   override def toResponse(exception: Exception): Response = {
+    warn("Error occurs on accessing REST API.", exception)

Review Comment:
   `trino.api` also has a similar `RestExceptionMapper`
   Can it be updated together?
   
   
https://github.com/apache/kyuubi/blob/c5238535f6c8d70ac97efc4c1d5dee93765fef92/kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/api.scala#L42-L45



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to