From 06d3dd584641baa1877a261f533cdb6a30e311ad Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sun, 23 Jun 2024 16:34:13 +0200 Subject: jsonrpc: add info logs when connecting/listening to endpoint --- jsonrpc/src/server/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jsonrpc/src/server') diff --git a/jsonrpc/src/server/mod.rs b/jsonrpc/src/server/mod.rs index bde351e..8fa8a1c 100644 --- a/jsonrpc/src/server/mod.rs +++ b/jsonrpc/src/server/mod.rs @@ -6,7 +6,7 @@ pub mod service; use std::{collections::HashMap, sync::Arc}; -use log::{debug, error, trace, warn}; +use log::{debug, error, info, trace, warn}; use karyon_core::{ async_runtime::Executor, @@ -328,6 +328,8 @@ impl Server { None => TaskGroup::new(), }; let listener = Self::listen(&config).await?; + info!("RPC server listens to the endpoint: {}", config.endpoint); + let server = Arc::new(Server { listener, task_group, -- cgit v1.2.3