Merge branch 'application-mgt-new' into 'application-mgt-new'

Change logger level to warn when Android Enterprise is not configured

See merge request entgra/carbon-device-mgt-plugins!93
revert-dabc3590
Dharmakeerthi Lasantha 5 years ago
commit 708aafd3a1

@ -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());
}

Loading…
Cancel
Save