From e885751e278d0514237f128fd9e8540b35c4309d Mon Sep 17 00:00:00 2001 From: aniketfuryrocks Date: Tue, 31 Jan 2023 22:38:10 +0530 Subject: [PATCH] log ctrl c --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index c69d6674..3f115e18 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use std::time::Duration; use anyhow::bail; use clap::Parser; use lite_rpc::{bridge::LiteBridge, cli::Args}; +use log::info; #[tokio::main] pub async fn main() -> anyhow::Result<()> { @@ -45,6 +46,7 @@ pub async fn main() -> anyhow::Result<()> { bail!("Serives quit unexpectedly"); } _ = ctrl_c_signal => { + info!("Received ctrl+c signal"); Ok(()) } }