log error
This commit is contained in:
parent
13a7ab1838
commit
3014d984ae
|
@ -4,7 +4,7 @@ use anyhow::bail;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use dotenv::dotenv;
|
use dotenv::dotenv;
|
||||||
use lite_rpc::{bridge::LiteBridge, cli::Args};
|
use lite_rpc::{bridge::LiteBridge, cli::Args};
|
||||||
use log::info;
|
use log::{error, info};
|
||||||
use prometheus::{opts, register_int_counter, IntCounter};
|
use prometheus::{opts, register_int_counter, IntCounter};
|
||||||
use solana_lite_rpc_core::AnyhowJoinHandle;
|
use solana_lite_rpc_core::AnyhowJoinHandle;
|
||||||
use solana_sdk::signature::Keypair;
|
use solana_sdk::signature::Keypair;
|
||||||
|
@ -120,7 +120,8 @@ pub async fn main() -> anyhow::Result<()> {
|
||||||
|
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
res = main => {
|
res = main => {
|
||||||
bail!("LiteRpc exited with result {res:?}")
|
error!("LiteRpc exited with result {res:?}");
|
||||||
|
bail!("LiteRpc quit with errors")
|
||||||
}
|
}
|
||||||
_ = ctrl_c_signal => {
|
_ = ctrl_c_signal => {
|
||||||
info!("Received ctrl+c signal");
|
info!("Received ctrl+c signal");
|
||||||
|
|
Loading…
Reference in New Issue