update 打印日志

This commit is contained in:
jsowell
2026-07-01 11:21:00 +08:00
parent fecc17bf08
commit 7685f3df55

View File

@@ -190,6 +190,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
// 通过桩编号获取channel
ChannelHandlerContext ctx = PileChannelEntity.getChannelByPileSn(pileSn);
String frameTypeName = ((YKCFrameTypeCode) frameTypeCode).getValue(); // 帧类型名称
log.info("同步获取响应数据-发送消息, pileSn:{}, channelId:{}, 帧类型:{}", pileSn, ctx.channel().id(), frameTypeName);
if (Objects.isNull(ctx)) {
log.error("push命令[{}]失败, 桩号:{}无法获取到长连接, 请检查充电桩连接状态!", frameTypeName, pileSn);
throw new NullPointerException("channel");