Permalink
Browse files

Reduce chatter in logs while a node is unavailable (from INFO to DEBU…

…G level output).
  • Loading branch information...
1 parent 667ed50 commit 8f4e8b0638f77f619f62faab98f3b6ed84343583 @jayjwylie jayjwylie committed Mar 22, 2013
@@ -6,7 +6,7 @@ log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# log4j.appender.stdout.layout.ConversionPattern=[%d %c] %p %m %n
-log4j.appender.stdout.layout.ConversionPattern=[%d{ABSOLUTE} %c] %p %m [%t]%n
+log4j.appender.stdout.layout.ConversionPattern=[%d{ABSOLUTE} %c] %p %m [%t]%n
# Turn on all our debugging info
log4j.logger=INFO
@@ -19,4 +19,5 @@ log4j.logger.voldemort.utils=INFO
log4j.logger.voldemort.client.rebalance=INFO
log4j.logger.voldemort.server=INFO
log4j.logger.voldemort.routing=INFO
+log4j.logger.voldemort.store.stats=INFO
log4j.logger.krati=WARN
@@ -121,8 +121,8 @@ public void run() {
nodeRecovered(node);
} catch(UnreachableStoreException e) {
- if(logger.isInfoEnabled())
- logger.info("Node " + node.getId() + " still unavailable.");
+ if(logger.isDebugEnabled())
+ logger.debug("Node " + node.getId() + " still unavailable.");
} catch(Exception e) {
if(logger.isEnabledFor(Level.ERROR))
logger.error("Node " + node.getId() + " unavailable due to error", e);

0 comments on commit 8f4e8b0

Please sign in to comment.