You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/04/02 13:28:20 UTC

[GitHub] LinGoWei opened a new issue #1539: ������ mock ���������������������������������������������

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 方式打印堆栈日志。
   但是,在排查jar 中的 dubbo-common/logback.xml 时发现,
       <logger name="com.alibaba.dubbo.common.utils.DubboLogger" additivity="false">
           <level value="warn"/>
           <appender-ref ref="dubbo"/>
       </logger>
   
   使用warn 级别打印日志,并且additivity = false 即为只打印一次,
   warn 级别并不打印 info日志,导致调用 dubbo 生产者时抛出的异常堆栈无法打印。

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services