summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/actions.rs1
-rw-r--r--src/main.rs2
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(());
}