LinGoWei opened a new issue #1539: 使用 mock 时,调用生产者异常堆栈无法打印
URL: https://github.com/apache/incubator-dubbo/issues/1539
 
 
   在使用dubbo mock 时发现调用第三方服务的异常堆栈没打印,导致排查问题难度提高,debug 
发现在调用FailoverClusterInvoker.doInvoke() 
方法后,抛出的异常堆栈信息将会在com/alibaba/dubbo/rpc/cluster/support/wrapper/MockClusterInvoker.java:80
 抛出,并被catch,
   
![image](https://user-images.githubusercontent.com/6905006/38197721-3d7ba2f4-36bc-11e8-9bb1-3ca39e2eadc4.png)
   在判断 logger.isWarnEnabled() 后将会使用 info() 打印堆栈日志。
   日志级别等于或低于 warn 时,isWarnEnabled() 均为 true,所以在日志级别为 info时能正常打印异常堆栈,但warn 
级别下并不打印 info日志。
   但为什么在判断isWarnEnabled() 后却使用 info 方法打印呢?
   thx for @kimmking follow-up

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to