Skip to content

Commit fae40e7

Browse files
committed
Warn to log changed to BeanCreationException for @GrpcClientBean registration
1 parent fa7ed05 commit fae40e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/inject/GrpcClientBeanPostProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public Object postProcessBeforeInitialization(final Object bean, final String be
113113
processInjectionPoint(null, beanClientIterator.clazz(), beanClientIterator.client());
114114
beanFactory.registerSingleton(beanNameToCreate, beanValue);
115115
} catch (final Exception e) {
116-
log.warn("Could not register and autowire bean: {}", beanNameToCreate, e);
116+
throw new BeanCreationException(
117+
"Could not create and register grpc client bean: {}", beanNameToCreate, e);
117118
}
118119
}
119120

0 commit comments

Comments
 (0)