Skip to content

Commit f26fd02

Browse files
committed
Adjust log level based on interest
1 parent adc2f3d commit f26fd02

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DefaultHeapMemoryTuner.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,16 @@ private StepDirection getTuneDirection(TunerContext context) {
352352
}
353353
}
354354
}
355-
LOG.info(tunerLog.toString());
355+
// Log NEUTRAL decisions at DEBUG, because they are the most frequent and not that interesting.
356+
// Log other decisions at INFO because they are making meaningful operational changes.
357+
switch (newTuneDirection) {
358+
case NEUTRAL:
359+
LOG.debug(tunerLog.toString());
360+
break;
361+
default:
362+
LOG.info(tunerLog.toString());
363+
break;
364+
}
356365
return newTuneDirection;
357366
}
358367

0 commit comments

Comments
 (0)