Skip to content

Commit

Permalink
LP-218 Add logging namespace argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mattch1 committed Nov 22, 2024
1 parent 2748989 commit 9636c05
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -45,6 +47,6 @@ public void addInterceptors(@NonNull InterceptorRegistry registry) {

@Bean
public TransactionInterceptor transactionInterceptor() {
return new TransactionInterceptor();
return new TransactionInterceptor(APP_NAMESPACE);
}
}

0 comments on commit 9636c05

Please sign in to comment.