* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import org.onap.logging.filter.spring.LoggingInterceptor;
import org.onap.logging.filter.spring.StatusLoggingInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@ComponentScan(basePackages = {"org.onap.logging.filter"})
public class WebMvcConfig extends WebMvcConfigurerAdapter {
+ @Value("${logging.request-status.exclusions:}")
+ private String[] excludedPaths = new String[0];
+
@Autowired
private LoggingInterceptor loggingInterceptor;
@Bean
public MappedInterceptor mappedStatusLoggingInterceptor() {
- return new MappedInterceptor(new String[] {"/**"}, statusLoggingInterceptor);
+ return excludedPaths != null && excludedPaths.length > 0
+ ? new MappedInterceptor(new String[] {"/**"}, excludedPaths, statusLoggingInterceptor)
+ : new MappedInterceptor(new String[] {"/**"}, statusLoggingInterceptor);
}
}
prometheus:
enabled: true # Whether exporting of metrics to Prometheus is enabled.
step: 1m # Step size (i.e. reporting frequency) to use.
+
+logging:
+ request-status:
+ exclusions: []
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import org.onap.logging.filter.spring.LoggingInterceptor;
import org.onap.logging.filter.spring.StatusLoggingInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@ComponentScan(basePackages = {"org.onap.logging.filter"})
public class WebMvcConfig extends WebMvcConfigurerAdapter {
+ @Value("${logging.request-status.exclusions:}")
+ private String[] excludedPaths = new String[0];
+
@Autowired
private LoggingInterceptor loggingInterceptor;
@Bean
public MappedInterceptor mappedStatusLoggingInterceptor() {
- return new MappedInterceptor(new String[] {"/**"}, statusLoggingInterceptor);
+ return excludedPaths != null && excludedPaths.length > 0
+ ? new MappedInterceptor(new String[] {"/**"}, excludedPaths, statusLoggingInterceptor)
+ : new MappedInterceptor(new String[] {"/**"}, statusLoggingInterceptor);
}
}
jdbc-url: jdbc:mariadb://${DB_HOST}:${DB_PORT}/requestdb
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
- driver-class-name: org.mariadb.jdbc.Driver
+ driver-class-name: org.mariadb.jdbc.Driver
pool-name: reqdb-pool
registerMbeans: true
flyway:
username: bpel
password: '$2a$12$1xyutEZNfjGewIZRfKaE8eZE99f5sYFUmmM80BobI65KNjmcK0JuO'
role: BPEL-Client
- -
+ -
username: mso_admin
password: '$2a$12$tidKuu.h88E2nuL95pTVY.ZOYMN/1dp29A9b1o.0GFDsVVSYlMkHa'
role: ACTUATOR
prometheus:
enabled: true # Whether exporting of metrics to Prometheus is enabled.
step: 1m # Step size (i.e. reporting frequency) to use.
+
+logging:
+ request-status:
+ exclusions: []
private static Logger logger = LoggerFactory.getLogger(ScheduledDnsLookup.class);
- @ScheduledLogging
@Scheduled(fixedRate = 15000)
public void performDnsLookup() throws ScheduledTaskException {
String dnsUrl = System.getenv(DB_HOST);
return Integer.parseInt(env.getProperty("workflow.topics.maxClients", "10"));
}
- @ScheduledLogging
@Scheduled(fixedDelay = 30000)
public void checkAllClientsActive() {
try {