log ctrl c

This commit is contained in:
aniketfuryrocks 2023-01-31 22:38:10 +05:30
parent a64f70ed8b
commit e885751e27
No known key found for this signature in database
GPG Key ID: FA6BFCFAA7D4B764
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(())
}
}