From 9636c054fed6fa8aa4f70725c5d7bd9abd8a55fb Mon Sep 17 00:00:00 2001 From: mattch1 Date: Fri, 22 Nov 2024 14:46:19 +0000 Subject: [PATCH] LP-218 Add logging namespace argument --- .../limitedpartnershipsapi/config/InterceptorConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/uk/gov/companieshouse/limitedpartnershipsapi/config/InterceptorConfig.java b/src/main/java/uk/gov/companieshouse/limitedpartnershipsapi/config/InterceptorConfig.java index 96fb2ff..4432ea6 100644 --- a/src/main/java/uk/gov/companieshouse/limitedpartnershipsapi/config/InterceptorConfig.java +++ b/src/main/java/uk/gov/companieshouse/limitedpartnershipsapi/config/InterceptorConfig.java @@ -10,6 +10,8 @@ import uk.gov.companieshouse.limitedpartnershipsapi.interceptor.CustomUserAuthenticationInterceptor; import uk.gov.companieshouse.limitedpartnershipsapi.interceptor.LoggingInterceptor; +import static uk.gov.companieshouse.limitedpartnershipsapi.LimitedPartnershipsApiApplication.APP_NAMESPACE; + @Configuration public class InterceptorConfig implements WebMvcConfigurer { @@ -45,6 +47,6 @@ public void addInterceptors(@NonNull InterceptorRegistry registry) { @Bean public TransactionInterceptor transactionInterceptor() { - return new TransactionInterceptor(); + return new TransactionInterceptor(APP_NAMESPACE); } }