From 3b54ffc3f2e3e2bd1bff1c374aa603454d6b8ac6 Mon Sep 17 00:00:00 2001 From: Jordan Oroshiba Date: Mon, 16 Dec 2024 14:34:34 -0800 Subject: [PATCH] move log to main start function, make more accurate --- crates/astria-sequencer/src/sequencer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/astria-sequencer/src/sequencer.rs b/crates/astria-sequencer/src/sequencer.rs index e5afee9e2..f961d9cc5 100644 --- a/crates/astria-sequencer/src/sequencer.rs +++ b/crates/astria-sequencer/src/sequencer.rs @@ -102,6 +102,7 @@ impl Sequencer { .wrap_err("failed to parse grpc_addr address")?; let grpc_server_handle = start_grpc_server(&storage, mempool, grpc_addr, shutdown_rx); + info!(config.listen_addr, "starting abci server"); let abci_server_handle = start_abci_server( &storage, app, @@ -206,8 +207,7 @@ fn start_abci_server( .snapshot(snapshot_service) .finish() .ok_or_eyre("server builder didn't return server; are all fields set?")?; - - info!(listen_addr, "starting sequencer"); + let abci_url = Url::parse(listen_addr).wrap_err("failed to parse listen_addr")?; let validated_listen_addr = match abci_url.scheme() { "unix" => match abci_url.to_file_path() {