Skip to content

Commit

Permalink
Log when vote finishes processing
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 28, 2024
1 parent a997e03 commit c65d60f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion canister/src/jobs/process_votes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -145,6 +146,8 @@ async fn process_vote(vote: VoteToProcess) {
}
}

log(format!("Finished processing vote: {vote_string}"));

state::read(start_job_if_required);
}

Expand Down

0 comments on commit c65d60f

Please sign in to comment.