summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-08-25 14:42:32 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-08-25 13:01:52 +0000
commit63ede5bdeea1f2b4379e1dec170bb453b4051a21 (patch)
treebc453ff9a84d8284cdcfb6edbad0913a29f81f68
parent318e060360ef3ae63d4c04fdf6eec6bb6ba5e88a (diff)
Remove Config Binding Service specific logs1.7.1
Remove unnecessary information in logs after CbsClient update Issue-ID: DCAEGEN2-2868 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: If6d4af3769df83d8da293f413534d2066ceb7fd1
-rw-r--r--prh-app-server/src/main/java/org/onap/dcaegen2/services/bootstrap/CbsPropertySourceLocator.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/bootstrap/CbsPropertySourceLocator.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/bootstrap/CbsPropertySourceLocator.java
index c068988c..2b5ac2e5 100644
--- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/bootstrap/CbsPropertySourceLocator.java
+++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/bootstrap/CbsPropertySourceLocator.java
@@ -59,11 +59,9 @@ public class CbsPropertySourceLocator implements PropertySourceLocator {
@Override
public PropertySource<?> locate(Environment environment) {
CbsClientConfiguration cbsClientConfiguration = cbsClientConfigurationResolver.resolveCbsClientConfiguration();
- LOGGER.info("Fetching configuration from Config Binding Service @ {}:{} for {}",
- cbsClientConfiguration.hostname(), cbsClientConfiguration.port(), cbsClientConfiguration.appName());
Map<String, Object> properties = cbsClientFactoryFacade.createCbsClient(cbsClientConfiguration)
.flatMap(cbsClient -> cbsClient.get(CbsRequests.getAll(RequestDiagnosticContext.create())))
- .doOnError(e -> LOGGER.warn("Failed fetching config properties from CBS - retrying...", e))
+ .doOnError(e -> LOGGER.warn("Failed loading configuration - retrying...", e))
.retryWhen(Retry.
backoff(cbsProperties.getFetchRetries().getMaxAttempts(), cbsProperties.getFetchRetries().getFirstBackoff()).
maxBackoff(cbsProperties.getFetchRetries().getMaxBackoff()))
@@ -77,7 +75,7 @@ public class CbsPropertySourceLocator implements PropertySourceLocator {
try {
cbsConfiguration.parseCBSConfig(jsonObject);
} catch (Exception e) {
- LOGGER.error("Failed parsing configuration from CBS", e);
+ LOGGER.error("Failed parsing configuration", e);
throw e;
}
}