Improve information logging

This commit is contained in:
tcdlpds@gmail.com 2020-12-09 16:57:15 +05:30
parent 0c31b7cd49
commit 087b826d29

View File

@ -41,7 +41,10 @@ public abstract class DynamicPartitionedScheduleTask implements Task {
taskContext = new DynamicTaskContext();
taskContext.setPartitioningEnabled(true);
} else {
log.info("Error Instantiating Variables necessary for Dynamic Task Scheduling. Dynamic Tasks will not function.");
if (log.isDebugEnabled()) {
log.debug(
"Error Instantiating Variables necessary for Dynamic Task Scheduling. Dynamic Tasks will not function.");
}
}
} catch (HeartBeatManagementException e) {
log.error("Error Instantiating Variables necessary for Dynamic Task Scheduling. Dynamic Tasks will not function." , e);