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:
parent
caef9f0cd5
commit
a154bd8a73
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue