From c68478dacab06bf56a3cd3af9f7add904e820f9c Mon Sep 17 00:00:00 2001 From: shamalka Date: Tue, 30 Aug 2022 09:10:20 +0530 Subject: [PATCH] Fix formatting issues --- .../jaxrs/service/impl/DeviceManagementServiceImpl.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java index 962373be34a..6cebe780269 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/DeviceManagementServiceImpl.java @@ -544,11 +544,6 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { devices.getList().get(i).getId(), tenantId); int traccarDeviceId = trackerDevice.getTraccarDeviceId(); boolean getPermission = DeviceAPIClientServiceImpl.getUserIdofPermissionByDeviceIdNUserId(traccarDeviceId, userId); - log.info("--------------------"); - log.info(getPermission); - log.info(traccarDeviceId); - log.info(userId); - log.info("--------------------"); traccarValidIdList.add(traccarDeviceId); if (!getPermission) { DeviceAPIClientServiceImpl.addTrackerUserDevicePermission(userId, traccarDeviceId); @@ -563,10 +558,6 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { getAllUserDevice.getTraccarDeviceId(), TraccarHandlerConstants.Types.REMOVE_TYPE_SINGLE); } - } catch (JSONException e) { - String msg = "not a JSONObject, "; - log.error(msg); - return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build(); } catch (DeviceManagementException e) { String msg = "Error occurred while fetching all enrolled devices"; log.error(msg, e);