Commit 7d9c581a by tiger

增加日志

1 parent 09a1f7d6
......@@ -71,8 +71,14 @@ public class TcpClientHandler extends SimpleChannelInboundHandler<byte[]> {
TcpBase rsp = handler.handle(ctx.channel(), up);
if (rsp != null) {
// seq字段处理
rsp.setSeq(up.getSeq());
byte[] bs = Ocpp16Helper.build(rsp);
ctx.channel().writeAndFlush(bs);
log.info("【{}】【{}】send1: {} ", ip, rsp.getClass().getSimpleName(), ByteUtils.toHex(bs));
log.info("【{}】【{}】send2: {} ", ip, rsp.getClass().getSimpleName(), rsp);
}
} catch (Exception e) {
log.error("【{}】{}", ip, bytes, e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!