Skip to content

Commit 27ef429

Browse files
committed
Use errorLogger name for error logger endpoint
The long `IntegrationContextUtils.ERROR_LOGGER_BEAN_NAME` name is used for `errorChannel` `LoggingHandler`'s endpoint. It is too long for endpoint node in the graph meanwhile the `errorChannel` is good everywhere * Change a `LoggingHandler`'s endpoint for `errorChannel` bean name to the `errorLogger`, leaving exiting `IntegrationContextUtils.ERROR_LOGGER_BEAN_NAME` as an alias This way a `componentName` for the `LoggingHandler` is going to be as `errorLogger` and will draw a node in UI nicely
1 parent bc8e775 commit 27ef429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/config/DefaultConfiguringBeanFactoryPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private void registerErrorChannel() {
233233

234234
BeanComponentDefinition componentDefinition =
235235
new BeanComponentDefinition(loggingEndpointBuilder.getBeanDefinition(),
236-
IntegrationContextUtils.ERROR_LOGGER_BEAN_NAME);
236+
"errorLogger", new String[] { IntegrationContextUtils.ERROR_LOGGER_BEAN_NAME });
237237
BeanDefinitionReaderUtils.registerBeanDefinition(componentDefinition, this.registry);
238238
}
239239
}

0 commit comments

Comments
 (0)