Hi, i have a question about logging error messages...
# kroto-plus
o
Hi, i have a question about logging error messages. Is there a way to log error messages of exceptions thrown by override methods of
XxxCoroutineGrpc.XxxImplBase()
? This is an example method:
Copy code
override suspend fun someMethod(x: X): Y {
    ...
    throw StatusRuntimeException(Status.NOT_FOUND)
}
and I want to call
log.warn(e, e.message)
when this method
someMethod
throws an exception. Is there a class like Spring’s ControllerAdvice?