Addressing CR comments and changing log level from error to warn

This commit is contained in:
Sahil Palvia 2017-09-13 17:07:17 -07:00
parent 5b06cb1c7a
commit f9da89a41f

View file

@ -564,7 +564,7 @@ public class LeaseManager<T extends Lease> implements ILeaseManager<T> {
protected DependencyException convertAndRethrowExceptions(String operation, String leaseKey, AmazonClientException e)
throws ProvisionedThroughputException, InvalidStateException {
if (e instanceof ProvisionedThroughputExceededException) {
LOG.error("ProvisionedThroughputExceededException thrown, increase the IOPs on the lease table", e);
LOG.warn("ProvisionedThroughputExceededException thrown, increase the IOPs on the lease table");
throw new ProvisionedThroughputException(e);
} else if (e instanceof ResourceNotFoundException) {
// @formatter:on