Skip to content

Commit 8c95261

Browse files
committed
Add debug log in CommandRegistryAutoConfiguration
1 parent 499e63c commit 8c95261

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-shell-core-autoconfigure/src/main/java/org/springframework/shell/core/autoconfigure/CommandRegistryAutoConfiguration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@AutoConfiguration
4343
public class CommandRegistryAutoConfiguration {
4444

45-
private static final Log log = LogFactory.getLog(SpringShellAutoConfiguration.class);
45+
private static final Log log = LogFactory.getLog(CommandRegistryAutoConfiguration.class);
4646

4747
@Bean
4848
@ConditionalOnMissingBean
@@ -70,6 +70,9 @@ private void registerAnnotatedCommands(ApplicationContext applicationContext, Co
7070
log.warn(String.format("Skipping candidate component %s with null class name", candidateComponent));
7171
continue;
7272
}
73+
else {
74+
log.debug("Registering commands from component: " + className);
75+
}
7376
try {
7477
Class<?> cls = ClassUtils.forName(className, applicationContext.getClassLoader());
7578
ReflectionUtils.MethodFilter filter = method -> AnnotatedElementUtils.hasAnnotation(method,

0 commit comments

Comments
 (0)