You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/01 09:13:27 UTC

[GitHub] gy0801151351 opened a new issue #2011: ServiceAnnotationBeanPostProcessor的log信息级别有误

gy0801151351 opened a new issue #2011: ServiceAnnotationBeanPostProcessor的log信息级别有误
URL: https://github.com/apache/incubator-dubbo/issues/2011
 
 
   https://github.com/apache/incubator-dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationBeanPostProcessor.java
   
   
   这个java类里面的private void registerServiceBean 这个方法, 下面这几行
   if (scanner.checkCandidate(beanName, serviceBeanDefinition)) { // check duplicated candidate bean
               registry.registerBeanDefinition(beanName, serviceBeanDefinition);
   
               if (logger.isInfoEnabled()) {
                   logger.warn("The BeanDefinition[" + serviceBeanDefinition +
                           "] of ServiceBean has been registered with name : " + beanName);
               }
   
           } else {
   
               if (logger.isWarnEnabled()) {
                   logger.warn("The Duplicated BeanDefinition[" + serviceBeanDefinition +
                           "] of ServiceBean[ bean name : " + beanName +
                           "] was be found , Did @DubboComponentScan scan to same package in many times?");
               }
   
           }
   
   请问, 为什么在检查没有重复的bean定义的时候, 还要打印一条警告信息? 不是应该是info信息吗?

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org