justxuewei edited a comment on issue #1477:
URL: https://github.com/apache/dubbo-go/issues/1477#issuecomment-932888553


   尽量封装好 log 的格式,并且使用 error wrapper 的方式封装错误,log 格式比如: `fmt.Errorf("[%s] %s, %s, 
%s: \n%w", "函数名称", "brief msg", "key1", "value1", err)`。
   
   这样的好处是可以使用 `errors.Is()` 判断错误的类型。


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