Commit ccfbf697 authored by Alok Joshi's avatar Alok Joshi
Browse files

Merge branch 'use_debug_logs' into 'master'

change some info logs to debug

See merge request !132
parents 4da680b0 9a5362bb
Pipeline #50693 failed with stages
in 44 minutes and 57 seconds
......@@ -36,7 +36,7 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
<project.main.basedir>${project.parent.basedir}</project.main.basedir>
<springboot.version>2.1.7.RELEASE</springboot.version>
<osdu.corelibazure.version>0.9.0</osdu.corelibazure.version>
<osdu.corelibazure.version>0.10.0-rc8</osdu.corelibazure.version>
<osdu.oscorecommon.version>0.9.0</osdu.oscorecommon.version>
<osdu.search-core.version>0.10.0-SNAPSHOT</osdu.search-core.version>
<spatial4j.version>0.7</spatial4j.version>
......
......@@ -149,7 +149,7 @@ public class EntitlementsAndCacheServiceImpl implements IEntitlementsExtensionSe
try {
groups = service.getGroups();
this.cache.put(cacheKey, groups);
this.logger.info("Entitlements cache miss");
this.logger.debug("Entitlements cache miss");
} catch (EntitlementsException e) {
e.printStackTrace();
HttpResponse response = e.getHttpResponse();
......
......@@ -90,7 +90,7 @@ public class AttributeCollection {
for (Attribute attr : attributes) {
String cacheKey = String.format("%s-%s-%s", searchConfigurationProperties.getDeployedServiceId(),
this.headersInfo.getPartitionId(), attr.getName());
log.info(String.format("updating the cache with key: %s", cacheKey));
log.debug(String.format("updating the cache with key: %s", cacheKey));
Set<String> attrVals = new HashSet<>();
for (String fieldName : attr.getSchemaMapping()) {
attrVals.addAll(this.getTermAggregationForField("by_" + fieldName, fieldName));
......@@ -194,7 +194,7 @@ public class AttributeCollection {
if (response.getResponseCode() != 200)
log.warning(String.format("Failed to update field: %s | indices: %s", fieldName, indicesSet));
else
log.info(String.format("Updated field: %s | indices: %s", fieldName, indicesSet));
log.debug(String.format("Updated field: %s | indices: %s", fieldName, indicesSet));
}
}
......
......@@ -78,7 +78,7 @@ public class Kinds {
public void cacheSync() throws IOException {
String cacheKey = String.format("%s-%s", configurationProperties.getDeployedServiceId(), this.headersInfo.getPartitionId());
log.info(String.format("updating the cache with key: %s", cacheKey));
log.debug(String.format("updating the cache with key: %s", cacheKey));
Set<String> kindVals = this.getTermAggregation("by_kind", RecordMetaAttribute.KIND.getValue());
this.cache.put(cacheKey, kindVals);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment