issxjl2015 opened a new issue #2152: URL: https://github.com/apache/servicecomb-java-chassis/issues/2152
背景: 基于SPI机制,实现了一个记录三方日志的logFilter, 正常请求下,对request和response进行记录。 当超时场景下,response无法收到,框架直接抛出490异常。对于logFilter,少记录了一条超时日志。 看源码,发现可以对FallbackPolicy接口进行扩展实现,重写了record方法(记录日志),同时配置超时的policy。 但是在调试代码的时候,发现POLICYS是BeanHolder注入的,始终无法加载到我设置的超时policy。 问题: 实现了FallbackPolicy接口后,如何加载超时policy,且在超时情况下,能调用到record方法。求助,谢谢 ---------------------------------------------------------------- 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: [email protected]
