log ctrl c

This commit is contained in:
aniketfuryrocks 2023-01-31 22:38:10 +05:30
parent 464b857a87
commit ecdba2cedc
1 changed files with 2 additions and 0 deletions

View File

@ -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(())
}
}