Bug 4657: Lowering priority of log entries regarding ShardingContext

from SEVERE to WARNING
This commit is contained in:
Steffen Schaefer committed 2018-07-04 09:51:11 +02:00
1 parent 51f8b2da66
commit 98fb6a0cb2
1 file changed
+2 -2
@@ -77,12 +77,12 @@ public class ShardingContext {
*/
public static void checkConstraint(final ShardingType type, final String shardingInfo) {
if (shardingInfo == null || shardingInfo.isEmpty()) {
logger.severe("Empty sharding constraint");
logger.warning("Empty sharding constraint");
return;
}
final ThreadLocal<String> shardingHolder = shardingMap.get(type);
if (shardingHolder == null) {
logger.log(Level.SEVERE, "No current sharding context set for " + type.name(), new RuntimeException());
logger.log(Level.WARNING, "No current sharding context set for " + type.name(), new RuntimeException());
return;
}
String currentShardingInfo = shardingHolder.get();