zhujiawen12345 commented on issue #2255: URL: https://github.com/apache/servicecomb-java-chassis/issues/2255#issuecomment-786985756
> 这个日志是 `ServiceRegistryClientImpl` 打印的, 首先确认下是否开启 watch, [参考](https://docs.servicecomb.io/java-chassis/zh_CN/registry/service-center/)。 如果开启了,可以看下这个类的代码和调试下,是否连接成功打印日志。 如果打印了, 可能就是和日志配置有关系了。 看了下yaml确认开启了watch,之前也debug过确认调用了打印日志的操作,后面自己把log4j的immediateFlush="false"改成了immediateFlush="true", 注册成功的日志也能正常打印了; 比较好奇的是之前一直都是正常打印的,log4j的配置也没改过,就是突然不打印了,而且同一个服务只有一台机器没有打印,其他机器都是正常打印的。不知道为啥会这样。 ---------------------------------------------------------------- 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]
