Skip to content
Snippets Groups Projects
Commit 3327bc6b authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

change the logging level and log the exception

parent f26e2daf
No related branches found
No related tags found
2 merge requests!346Merge branch 'aws-integration' into 'master',!315enable sort and aggregation on primitive text array
...@@ -120,7 +120,7 @@ public class StorageServiceImpl implements StorageService { ...@@ -120,7 +120,7 @@ public class StorageServiceImpl implements StorageService {
try { try {
records = this.objectMapper.readValue(bulkStorageData, Records.class); records = this.objectMapper.readValue(bulkStorageData, Records.class);
} catch (JsonProcessingException e) { } catch (JsonProcessingException e) {
throw new AppException(RequestStatus.INVALID_RECORD, "Invalid request", "Successful Storage service response with wrong json"); throw new AppException(RequestStatus.INVALID_RECORD, "Invalid request", "Successful Storage service response with wrong json", e);
} }
// no retry possible, update record status as failed -- storage service cannot locate records // no retry possible, update record status as failed -- storage service cannot locate records
......
...@@ -106,7 +106,7 @@ public class ElasticClientHandler { ...@@ -106,7 +106,7 @@ public class ElasticClientHandler {
new BasicHeader("xpack.security.transport.ssl.enabled", tls), new BasicHeader("xpack.security.transport.ssl.enabled", tls),
new BasicHeader("Authorization", basicAuthenticationHeaderVal), new BasicHeader("Authorization", basicAuthenticationHeaderVal),
}; };
log.info(String.format( log.fine(String.format(
"Elastic client connection uses protocolScheme = %s with a flag " "Elastic client connection uses protocolScheme = %s with a flag "
+ "'security.https.certificate.trust' = %s", + "'security.https.certificate.trust' = %s",
protocolScheme, isSecurityHttpsCertificateTrust)); protocolScheme, isSecurityHttpsCertificateTrust));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment