From b75f2c6724b297efce1ad1c7b419556658eed05e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 23 Apr 2024 15:56:04 +0100 Subject: Add more debug logging --- src/actions.rs | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/actions.rs b/src/actions.rs index b002df8..b462102 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -129,6 +129,7 @@ pub async fn run_actions( ) { TokioScope::scope_and_block(|s| { for &action in actions { + debug!("running '{}' action", action.name()); s.spawn(action.run(params.as_ref())); } }); diff --git a/src/main.rs b/src/main.rs index dc9fc72..902b26f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,6 +74,7 @@ fn get_and_handle_new_txs( TokioScope::scope_and_block(|s| { for tx in txs.iter() { let params = MessageParams::new(tx, &locked_wallet_info); + info!("running actions for txid '{}'", params.txid_short()); s.spawn(run_actions(actions, Some(params))); } }); @@ -136,6 +137,7 @@ async fn do_main() -> Result<()> { let actions_ref = actions.iter().map(Box::as_ref).collect::>(); if args.test() { + info!("running test actions"); run_actions(&actions_ref, None).await; return Ok(()); } -- cgit v1.2.3-70-g09d2