From 97ff014b1b421bd21cbea40b18210cf90976b5ce Mon Sep 17 00:00:00 2001 From: hasuniea Date: Wed, 17 Aug 2016 15:53:38 +0530 Subject: [PATCH] fixing log info message issue --- .../androidsense/service/impl/AndroidSenseServiceImpl.java | 6 +++--- .../mgt/iot/arduino/service/impl/ArduinoServiceImpl.java | 2 +- .../raspberrypi/service/impl/RaspberryPiServiceImpl.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java index 9f2ab2da5c..a1307dfa61 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java @@ -79,7 +79,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { @@ -119,7 +119,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { @@ -158,7 +158,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { diff --git a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java index ca709ddd63..b8ad085698 100644 --- a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java +++ b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java @@ -80,7 +80,7 @@ public class ArduinoServiceImpl implements ArduinoService { deviceIdentifiers); return Response.status(Response.Status.OK.getStatusCode()).build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { diff --git a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java index 36347ab6a8..86787a2b81 100644 --- a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java +++ b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java @@ -91,7 +91,7 @@ public class RaspberryPiServiceImpl implements RaspberryPiService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) {