Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -157,7 +157,7 @@ public class TcpTransportHandler extends ChannelInboundHandlerAdapter implements |
157 | 157 | ByteBuf message = (ByteBuf) msg; |
158 | 158 | byte[] byteMsg = ByteBufUtils.buf2Bytes(message); |
159 | 159 | String msgStr = ByteUtils.bytesToStr(byteMsg); |
160 | - log.error("会话【{}】收到设备【{}】来自【{}】数据【{}】", sessionId, deviceSessionCtx.getDeviceId(), address, msgStr); | |
160 | + log.debug("会话【{}】收到设备【{}】来自【{}】数据【{}】", sessionId, deviceSessionCtx.getDeviceId(), address, msgStr); | |
161 | 161 | deviceSessionCtx.setChannel(ctx); |
162 | 162 | if (deviceSessionCtx.getDeviceInfo() == null || deviceSessionCtx.getDeviceProfile() == null) { |
163 | 163 | processConnect(ctx, msgStr); |
... | ... | @@ -534,7 +534,7 @@ public class TcpTransportHandler extends ChannelInboundHandlerAdapter implements |
534 | 534 | |
535 | 535 | @Override |
536 | 536 | public void onToDeviceRpcRequest(UUID sessionId, TransportProtos.ToDeviceRpcRequestMsg rpcRequest) { |
537 | - log.error("【{}】下发RPC命令【{}】给设备【{}】", sessionId, rpcRequest.getParams(), deviceSessionCtx.getDeviceInfo().getDeviceName()); | |
537 | + log.debug("【{}】下发RPC命令【{}】给设备【{}】", sessionId, rpcRequest.getParams(), deviceSessionCtx.getDeviceInfo().getDeviceName()); | |
538 | 538 | TcpTransportAdaptor adaptor = deviceSessionCtx.getPayloadAdaptor(); |
539 | 539 | try { |
540 | 540 | adaptor.convertToPublish(deviceSessionCtx, rpcRequest).ifPresent(payload -> { |
... | ... | @@ -572,7 +572,7 @@ public class TcpTransportHandler extends ChannelInboundHandlerAdapter implements |
572 | 572 | |
573 | 573 | @Override |
574 | 574 | public void onToServerRpcResponse(TransportProtos.ToServerRpcResponseMsg rpcResponse) { |
575 | - log.error("[{}] 服务端响应设备的RPC请求", sessionId); | |
575 | + log.debug("[{}] 服务端响应设备的RPC请求", sessionId); | |
576 | 576 | // String baseTopic = toServerRpcSubTopicType.getRpcResponseTopicBase(); |
577 | 577 | // TcpTransportAdaptor adaptor = deviceSessionCtx.getAdaptor(toServerRpcSubTopicType); |
578 | 578 | // try { | ... | ... |