From c65d60fb725c9bf9a9451400bdd7cdbe8f99b394 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Sat, 28 Dec 2024 13:16:17 +0000 Subject: [PATCH] Log when vote finishes processing --- canister/src/jobs/process_votes.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/canister/src/jobs/process_votes.rs b/canister/src/jobs/process_votes.rs index 8c875f4..32ae23d 100644 --- a/canister/src/jobs/process_votes.rs +++ b/canister/src/jobs/process_votes.rs @@ -28,7 +28,8 @@ fn run() { } async fn process_vote(vote: VoteToProcess) { - log(format!("Processing vote: {vote:?}")); + let vote_string = format!("{vote:?}"); + log(format!("Processing vote: {vote_string}")); match vote { VoteToProcess::NnsVote(pair_id, nns_vote) => { @@ -145,6 +146,8 @@ async fn process_vote(vote: VoteToProcess) { } } + log(format!("Finished processing vote: {vote_string}")); + state::read(start_job_if_required); }