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


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/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:
   ```suggestion
       warn("Error occurs on accessing Trino API.", exception)
   ```



-- 
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