Skip to content

Commit

Permalink
Adjust log level based on interest
Browse files Browse the repository at this point in the history
  • Loading branch information
apurtell committed Nov 6, 2021
1 parent adc2f3d commit 81e68c4
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,18 @@ private StepDirection getTuneDirection(TunerContext context) {
}
}
}
LOG.info(tunerLog.toString());
// Log NEUTRAL decisions at DEBUG, because they are the most frequent and not that interesting.
// Log other decisions at INFO because they are making meaningful operational changes.
switch (newTuneDirection) {
case NEUTRAL:
if (LOG.isDebugEnabled()) {
LOG.debug(tunerLog.toString());
}
break;
default:
LOG.info(tunerLog.toString());
break;
}
return newTuneDirection;
}

Expand Down

0 comments on commit 81e68c4

Please sign in to comment.