From 40bfb2175cfcbd9000fd5ea02d43e6839e582b41 Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Mon, 14 Oct 2019 12:27:47 +0530 Subject: [PATCH] Change logger level to warn when Android Enterprise is not configured --- .../mdm/services/android/util/AndroidEnterpriseUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidEnterpriseUtils.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidEnterpriseUtils.java index ee9e4c6ef..9a9e76a99 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidEnterpriseUtils.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidEnterpriseUtils.java @@ -251,7 +251,7 @@ public class AndroidEnterpriseUtils { String esa = AndroidDeviceUtils.getAndroidConfig(configuration,"esa"); if (enterpriseId == null || enterpriseId.isEmpty() || esa == null || esa.isEmpty()) { String errorMessage = "Tenant is not configured to handle Android for work. Please contact Entgra."; - log.error(errorMessage); + log.warn(errorMessage); enterpriseConfigs.setErrorResponse(new ErrorResponse.ErrorResponseBuilder().setCode(404l) .setMessage(errorMessage).build()); }