Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -119,7 +119,7 @@ public class DefaultDeviceRpcService implements DeviceRpcService { |
119 | 119 | |
120 | 120 | @Override |
121 | 121 | public void processRpcResponseFromDevice(FromDeviceRpcResponse response) { |
122 | - log.trace("response to request: [{}]", response.getId()); | |
122 | + log.trace("[{}] Received device RPC response from server: [{}]", response.getId(), response.getServerAddress()); | |
123 | 123 | if (routingService.getCurrentServer().equals(response.getServerAddress())) { |
124 | 124 | UUID requestId = response.getId(); |
125 | 125 | Consumer<FromDeviceRpcResponse> consumer = localToDeviceRpcRequests.remove(requestId); |
... | ... | @@ -151,7 +151,7 @@ public class DefaultDeviceRpcService implements DeviceRpcService { |
151 | 151 | throw new RuntimeException(e); |
152 | 152 | } |
153 | 153 | RpcError error = proto.getError() > 0 ? RpcError.values()[proto.getError()] : null; |
154 | - FromDeviceRpcResponse response = new FromDeviceRpcResponse(new UUID(proto.getRequestIdMSB(), proto.getRequestIdLSB()), routingService.getCurrentServer(), | |
154 | + FromDeviceRpcResponse response = new FromDeviceRpcResponse(new UUID(proto.getRequestIdMSB(), proto.getRequestIdLSB()), serverAddress, | |
155 | 155 | proto.getResponse(), error); |
156 | 156 | processRpcResponseFromDevice(response); |
157 | 157 | } | ... | ... |