log ctrl c
This commit is contained in:
parent
464b857a87
commit
ecdba2cedc
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue