Improved log level
This commit is contained in:
parent
dfdb2e5bf8
commit
23cf9bff35
@ -69,8 +69,10 @@ public class SqlPartitioningRepository {
|
|||||||
String error = ExceptionUtils.getRootCauseMessage(e);
|
String error = ExceptionUtils.getRootCauseMessage(e);
|
||||||
if (StringUtils.containsAny(error, "would overlap partition", "already exists")) {
|
if (StringUtils.containsAny(error, "would overlap partition", "already exists")) {
|
||||||
partitions.put(partition.getStart(), partition);
|
partitions.put(partition.getStart(), partition);
|
||||||
|
log.debug("Couldn't save partition {}-{} for table {}: {}", partition.getStart(), partition.getEnd(), table, error);
|
||||||
|
} else {
|
||||||
|
log.warn("Couldn't save partition {}-{} for table {}: {}", partition.getStart(), partition.getEnd(), table, error);
|
||||||
}
|
}
|
||||||
log.warn("Couldn't save partition {}-{} for table {}: {}", partition.getStart(), partition.getEnd(), table, error);
|
|
||||||
} finally {
|
} finally {
|
||||||
partitionCreationLock.unlock();
|
partitionCreationLock.unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user