dlmarion commented on code in PR #5082:
URL: https://github.com/apache/accumulo/pull/5082#discussion_r1850283902


##########
server/base/src/main/java/org/apache/accumulo/server/conf/CheckCompactionConfig.java:
##########
@@ -106,7 +106,8 @@ public static void validate(AccumuloConfiguration config, 
Level level)
 
     Set<String> defaultService = Set.of(DEFAULT_COMPACTION_SERVICE_NAME);
     if (servicesConfig.getPlanners().keySet().equals(defaultService)) {
-      log.warn("Only the default compaction service was created - {}", 
defaultService);
+      log.atLevel(level).log("Only the default compaction service was created 
- {}",

Review Comment:
   We have implementions for a ConditionalLogger. One deduplicates and the 
other escalates. If you only want to see the message once every N time units, 
then use the DeduplicatingLogger. If you want to see the message at level X 
once every N time units, and at level Y the remaining times, then use the 
EscalatingLogger.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to