From b58264fd9da6fbfedaa9114008ff5f5db9e653b3 Mon Sep 17 00:00:00 2001 From: craig mcclendon Date: Fri, 6 Dec 2024 12:20:55 -0600 Subject: [PATCH] added debug out to assist troubleshooting custom interceptor/provider registration issues --- .../java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java b/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java index 3c91b00a28..25e857b417 100644 --- a/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java +++ b/src/main/java/ca/uhn/fhir/jpa/starter/common/StarterJpaConfig.java @@ -493,6 +493,7 @@ private void registerCustomInterceptors( Object interceptor = null; try { interceptor = theAppContext.getBean(clazz); + ourLog.info("registering custom interceptor as bean: {}", className); } catch (NoSuchBeanDefinitionException ex) { // no op - if it's not a bean we'll try to create it } @@ -501,6 +502,7 @@ private void registerCustomInterceptors( if (interceptor == null) { try { interceptor = clazz.getConstructor().newInstance(); + ourLog.info("registering custom interceptor as pojo: {}", className); } catch (Exception e) { throw new ConfigurationException("Unable to instantiate interceptor class : " + className, e); } @@ -532,6 +534,7 @@ private void registerCustomProviders( Object provider = null; try { provider = theAppContext.getBean(clazz); + ourLog.info("registering custom provider as bean: {}", className); } catch (NoSuchBeanDefinitionException ex) { // no op - if it's not a bean we'll try to create it } @@ -540,6 +543,7 @@ private void registerCustomProviders( if (provider == null) { try { provider = clazz.getConstructor().newInstance(); + ourLog.info("registering custom provider as pojo: {}", className); } catch (Exception e) { throw new ConfigurationException("Unable to instantiate provider class : " + className, e); }