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:
@@ -128,8 +128,8 @@ public class EventListenerMethodProcessor implements SmartInitializingSingleton,
|
|||||||
}
|
}
|
||||||
if (annotatedMethods.isEmpty()) {
|
if (annotatedMethods.isEmpty()) {
|
||||||
this.nonAnnotatedClasses.add(type);
|
this.nonAnnotatedClasses.add(type);
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.debug("No @EventListener annotations found on bean class: " + type);
|
logger.trace("No @EventListener annotations found on bean class: " + type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -231,8 +231,8 @@ public class ScheduledAnnotationBeanPostProcessor implements BeanPostProcessor,
|
|||||||
});
|
});
|
||||||
if (annotatedMethods.isEmpty()) {
|
if (annotatedMethods.isEmpty()) {
|
||||||
this.nonAnnotatedClasses.add(targetClass);
|
this.nonAnnotatedClasses.add(targetClass);
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.debug("No @Scheduled annotations found on bean class: " + bean.getClass());
|
logger.trace("No @Scheduled annotations found on bean class: " + bean.getClass());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -208,8 +208,8 @@ public class JmsListenerAnnotationBeanPostProcessor
|
|||||||
});
|
});
|
||||||
if (annotatedMethods.isEmpty()) {
|
if (annotatedMethods.isEmpty()) {
|
||||||
this.nonAnnotatedClasses.add(bean.getClass());
|
this.nonAnnotatedClasses.add(bean.getClass());
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.debug("No @JmsListener annotations found on bean class: " + bean.getClass());
|
logger.trace("No @JmsListener annotations found on bean class: " + bean.getClass());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user