Log errors caused by running gRPC server
@@ -209,13 +209,20 @@ impl Node for GrpcServerNode {
"{}: Starting gRPC server pseudo-Node on: {}",
self.node_name, self.address
);
- let result = async_runtime.block_on(server);
+ match async_runtime.block_on(server) {
+ Err(err) => warn!(
+ "{}: Error running gRPC server pseudo-Node: {}",
+ self.node_name, err
+ ),
+ Ok(()) => {
info!(
- "{}: Exiting gRPC server pseudo-Node thread: {:?}",
- self.node_name, result
+ "{}: Success running gRPC server pseudo-Node",
+ self.node_name,
);
}
}
+ }
+}
/// [`HttpRequestHandler`] handles HTTP/2 requests from a client and sends HTTP/2 responses back.
#[derive(Clone)]
