最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - How to Suppress gRPC Debug Context in Error Messages - Stack Overflow

programmeradmin2浏览0评论

I am using Apache Arrow library version 8.0.0, and whenever an error occurs, I receive verbose error messages containing gRPC client debug context and additional details. Here’s an example of the error message I get:

{Error Message}. gRPC client debug context: UNKNOWN:{Error message }{grpc_status:{status number}, created_time:{created time} }. Client context: IOError: {Error message} . Detail: Internal

On the client side, I only want to log or display the primary error message:

{Error Message}

I would like to remove the gRPC client debug context and other unnecessary details while retaining the core error message for clarity.

Is there a way to suppress the gRPC debug context or customize the error message directly from the code?

I've tried to retrieve the Error message using some internal methods, which didn't work.

发布评论

评论列表(0)

  1. 暂无评论