From 087b826d29044c6894a52a1e7dc28d3dba40d445 Mon Sep 17 00:00:00 2001 From: "tcdlpds@gmail.com" Date: Wed, 9 Dec 2020 16:57:15 +0530 Subject: [PATCH] Improve information logging --- .../mgt/core/task/impl/DynamicPartitionedScheduleTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/task/impl/DynamicPartitionedScheduleTask.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/task/impl/DynamicPartitionedScheduleTask.java index 2013105b6e..ef11b3bda2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/task/impl/DynamicPartitionedScheduleTask.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/task/impl/DynamicPartitionedScheduleTask.java @@ -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);