From 28b10b7255483c8e2eb5e3e828f8cda658e94c44 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 05 九月 2019 11:41:22 +0800 Subject: [PATCH] 调试完成警报、阈值的插入、更新、获取等接口 --- src/main/kotlin/com/flightfeather/obd/socket/ServerHandler.kt | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/obd/socket/ServerHandler.kt b/src/main/kotlin/com/flightfeather/obd/socket/ServerHandler.kt index 42a6c2a..a71b02e 100644 --- a/src/main/kotlin/com/flightfeather/obd/socket/ServerHandler.kt +++ b/src/main/kotlin/com/flightfeather/obd/socket/ServerHandler.kt @@ -1,8 +1,5 @@ package com.flightfeather.obd.socket -import com.flightfeather.obd.domain.entity.ObdData -import com.google.gson.Gson -import io.netty.channel.ChannelHandler import io.netty.channel.ChannelHandlerContext import io.netty.channel.ChannelInboundHandlerAdapter import io.netty.util.AttributeKey @@ -22,6 +19,7 @@ override fun channelRead(ctx: ChannelHandlerContext?, msg: Any?) { super.channelRead(ctx, msg) + println("------鏀跺埌鐨勫師濮嬫暟鎹細[ip:${ctx?.channel()?.remoteAddress()}]\r\n$msg") if (msg is String) { MessageManager().dealMsg(msg, ctx) } -- Gitblit v1.9.3