From 6025eb29fde9d13aff8fe48170fe444d0a692786 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Thu, 18 Apr 2024 16:30:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.java | 2 ++ .../com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java | 2 +- src/main/resources/application.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.java index a57c3128..2729b08b 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.java @@ -79,6 +79,7 @@ public class RedisRpcConfig implements MessageListener { if (userSetting.getServerId().equals(response.getToId())) { return; } + logger.info("[redis-rpc] << {}", response); response(response); } @@ -87,6 +88,7 @@ public class RedisRpcConfig implements MessageListener { if (userSetting.getServerId().equals(request.getFromId())) { return; } + logger.info("[redis-rpc] >> {}", request); Method method = getMethod(request.getUri()); // 没有携带目标ID的可以理解为哪个wvp有结果就哪个回复,携带目标ID,但是如果是不存在的uri则直接回复404 if (userSetting.getServerId().equals(request.getToId())) { diff --git a/src/main/java/com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java b/src/main/java/com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java index e31eb454..5faedf93 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java @@ -76,7 +76,7 @@ public class RedisRpcRequest { return "RedisRpcRequest{" + "fromId='" + fromId + '\'' + ", toId='" + toId + '\'' + - ", sn='" + sn + '\'' + + ", sn=" + sn + ", uri='" + uri + '\'' + ", param=" + param + '}'; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 69f947e2..3f478442 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,4 +2,4 @@ spring: application: name: wvp profiles: - active: local2 \ No newline at end of file + active: local \ No newline at end of file