Skip to content

Commit

Permalink
Fix log messages for init/destroy method registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Mar 1, 2022
1 parent 84de100 commit a7d5fbf
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -302,7 +302,7 @@ public void checkConfigMembers(RootBeanDefinition beanDefinition) {
beanDefinition.registerExternallyManagedInitMethod(methodIdentifier);
checkedInitMethods.add(element);
if (logger.isTraceEnabled()) {
logger.trace("Registered init method on class [" + this.targetClass.getName() + "]: " + element);
logger.trace("Registered init method on class [" + this.targetClass.getName() + "]: " + methodIdentifier);
}
}
}
Expand All @@ -313,7 +313,7 @@ public void checkConfigMembers(RootBeanDefinition beanDefinition) {
beanDefinition.registerExternallyManagedDestroyMethod(methodIdentifier);
checkedDestroyMethods.add(element);
if (logger.isTraceEnabled()) {
logger.trace("Registered destroy method on class [" + this.targetClass.getName() + "]: " + element);
logger.trace("Registered destroy method on class [" + this.targetClass.getName() + "]: " + methodIdentifier);
}
}
}
Expand Down

0 comments on commit a7d5fbf

Please sign in to comment.