chore(cli): log received signals at info level (#22071)

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Georgios Konstantopoulos
2026-02-11 12:55:37 -05:00
committed by GitHub
parent 079b7b9d57
commit e4cb3d3aed

View File

@@ -13,7 +13,7 @@
use reth_tasks::{PanickedTaskError, TaskExecutor};
use std::{future::Future, pin::pin, sync::mpsc, time::Duration};
use tokio::task::JoinHandle;
use tracing::{debug, error, trace};
use tracing::{debug, error, info};
/// Executes CLI commands.
///
@@ -247,10 +247,10 @@ where
tokio::select! {
_ = ctrl_c => {
trace!(target: "reth::cli", "Received ctrl-c");
info!(target: "reth::cli", "Received ctrl-c");
},
_ = sigterm => {
trace!(target: "reth::cli", "Received SIGTERM");
info!(target: "reth::cli", "Received SIGTERM");
},
res = fut => res?,
}
@@ -263,7 +263,7 @@ where
tokio::select! {
_ = ctrl_c => {
trace!(target: "reth::cli", "Received ctrl-c");
info!(target: "reth::cli", "Received ctrl-c");
},
res = fut => res?,
}