From 6025eb29fde9d13aff8fe48170fe444d0a692786 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 18 四月 2024 16:30:21 +0800 Subject: [PATCH] 添加注释 --- src/main/java/com/genersoft/iot/vmp/conf/redis/bean/RedisRpcRequest.java | 2 +- src/main/java/com/genersoft/iot/vmp/conf/redis/RedisRpcConfig.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 a57c312..2729b08 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 @@ if (userSetting.getServerId().equals(response.getToId())) { return; } + logger.info("[redis-rpc] << {}", response); response(response); } @@ -87,6 +88,7 @@ if (userSetting.getServerId().equals(request.getFromId())) { return; } + logger.info("[redis-rpc] >> {}", request); Method method = getMethod(request.getUri()); // 娌℃湁鎼哄甫鐩爣ID鐨勫彲浠ョ悊瑙d负鍝釜wvp鏈夌粨鏋滃氨鍝釜鍥炲锛屾惡甯︾洰鏍嘔D锛屼絾鏄鏋滄槸涓嶅瓨鍦ㄧ殑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 e31eb45..5faedf9 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 @@ 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 69f947e..3f47844 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,4 +2,4 @@ application: name: wvp profiles: - active: local2 \ No newline at end of file + active: local \ No newline at end of file -- Gitblit v1.8.0