diff options
| author | 2024-04-23 15:56:04 +0100 | |
|---|---|---|
| committer | 2024-04-23 16:08:56 +0100 | |
| commit | b75f2c6724b297efce1ad1c7b419556658eed05e (patch) | |
| tree | edcfb9542bdc4bef6c50964c2cec91bd8bfa0aa5 | |
| parent | 6c8f59502f3bb0279eae1091f19a7c0bb458a2c7 (diff) | |
| download | sentrum-b75f2c6724b297efce1ad1c7b419556658eed05e.tar.gz sentrum-b75f2c6724b297efce1ad1c7b419556658eed05e.tar.bz2 sentrum-b75f2c6724b297efce1ad1c7b419556658eed05e.zip | |
Add more debug logging
| -rw-r--r-- | src/actions.rs | 1 | ||||
| -rw-r--r-- | src/main.rs | 2 | 
2 files changed, 3 insertions, 0 deletions
| 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::<Vec<_>>();      if args.test() { +        info!("running test actions");          run_actions(&actions_ref, None).await;          return Ok(());      } | 
