Reduce logging level of EventListenerMethodProcessor

Reduce logging level when no target annotation is found a on bean. For
consistency, update ScheduledAnnotationBeanPostProcessor and
JmsListenerAnnotationBeanPostProcessor that define the same log
statement.

Issue: SPR-12574
This commit is contained in:
Stephane Nicoll
2015-02-26 13:33:19 +01:00
parent 2dd5875964
commit dff2a3d180
3 changed files with 6 additions and 6 deletions

View File

@@ -128,8 +128,8 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
}
if (annotatedMethods.isEmpty()) {
this.nonAnnotatedClasses.add(type);
if (logger.isDebugEnabled()) {
logger.debug("No @EventListener annotations found on bean class: " + type);
if (logger.isTraceEnabled()) {
logger.trace("No @EventListener annotations found on bean class: " + type);
}
}
else {

View File

@@ -231,8 +231,8 @@ public class ScheduledAnnotationBeanPostProcessor implements BeanPostProcessor,
});
if (annotatedMethods.isEmpty()) {
this.nonAnnotatedClasses.add(targetClass);
if (logger.isDebugEnabled()) {
logger.debug("No @Scheduled annotations found on bean class: " + bean.getClass());
if (logger.isTraceEnabled()) {
logger.trace("No @Scheduled annotations found on bean class: " + bean.getClass());
}
}
else {