You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/12/27 02:50:50 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 commented on issue #1497: 业务如果想在发生熔断的时候,在业务日志打个error日志,这个怎么做呢?

yhs0092 commented on issue #1497: 业务如果想在发生熔断的时候,在业务日志打个error日志,这个怎么做呢?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1497#issuecomment-569172471
 
 
   可以参考一下Java-Chassis中`org.apache.servicecomb.bizkeeper.event.CircutBreakerEventNotifier`类的代码。熔断发生和恢复时这个类会向EventBus中发布事件。
   你可以从`EventManager.getEventBus()`方法获取EventBus,来监听`org.apache.servicecomb.bizkeeper.event.CircutBreakerEvent`事件

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services