HBASE-23283 Provide clear and consistent logging about the period of enabled chores

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Mingliang Liu 2019-11-12 23:59:08 -08:00 committed by Sean Busbey
parent caef9f0cd5
commit a154bd8a73
1 changed files with 2 additions and 1 deletions

View File

@ -152,9 +152,10 @@ public class ChoreService implements ChoreServicer {
try {
if (chore.getPeriod() <= 0) {
LOG.info("The period is " + chore.getPeriod() + " seconds, " + chore.getName() + " is disabled");
LOG.info("Chore " + chore + " is disabled because its period is not positive.");
return false;
}
LOG.info("Chore " + chore + " is enabled.");
chore.setChoreServicer(this);
ScheduledFuture<?> future =
scheduler.scheduleAtFixedRate(chore, chore.getInitialDelay(), chore.getPeriod(),