diff --git a/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java b/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java index 4e34f112..e0368470 100644 --- a/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java +++ b/so-device/src/main/java/com/pineone/icbms/so/device/logic/DeviceManagerLogic.java @@ -131,7 +131,7 @@ public String deviceExecute(String deviceId,String deviceCommand, String session /** * Device 제어 후 제어 결과가 Success면 Device Subscription 요청 */ - if(resultMessage.getCode().equals(ClientProfile.RESPONSE_SUCCESS_ONEM2MCODE) && false) { + if(resultMessage.getCode().equals(ClientProfile.RESPONSE_SUCCESS_ONEM2MCODE)) { String subscriptionUri = device.getDeviceUri() + (ClientProfile.actionDeviceCommand(device.getDeviceUri()) ? ClientProfile.SI_CONTAINER_ACTION : ClientProfile.SI_CONTAINER_POWER) + ClientProfile.SI_CONTAINER_STATUS; String response = deviceSubscription(subscriptionUri, deviceControlMessage.get_commandId()); logger.debug(LogPrint.LogMethodNamePrint() + " | Device Subscription : " + " , Device Uri = " + device.getDeviceUri() + " , Result : " + response + " , Session ID = " + sessionId); diff --git a/so-web/src/main/resources/logback-spring.xml b/so-web/src/main/resources/logback-spring.xml index 6756a7ae..66989f29 100644 --- a/so-web/src/main/resources/logback-spring.xml +++ b/so-web/src/main/resources/logback-spring.xml @@ -1,16 +1,21 @@ + + - - %msg %n - + + + [%d{yyyy-MM-dd HHmmss.SSS}] [%5level] [%16.16thread{15}] [%-35logger{35}] : %msg %n + + so-log.log - SOLogger + so-log-%d{yyyy-MM-dd}.%i.log @@ -19,15 +24,10 @@ - %msg %n + [%d{yyyy-MM-dd HHmmss.SSS}] [%5level] [%16.16thread{15}] [%-35logger{35}] : %msg %n - - - - - \ No newline at end of file