log error

This commit is contained in:
aniketfuryrocks 2023-06-22 15:43:41 +05:30
parent 13a7ab1838
commit 3014d984ae
No known key found for this signature in database
GPG Key ID: 1B75EA596D89FF06
1 changed files with 3 additions and 2 deletions

View File

@ -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");