Skip to content

Commit

Permalink
feat: Adds logging to investigate hangs (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki authored Sep 29, 2023
1 parent fcc4d32 commit 7bd5c57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/withdrawal-finalizer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,7 @@ async fn main() -> Result<()> {
}
}

vlog::info!("Shutting down fianalizer");

Ok(())
}
6 changes: 6 additions & 0 deletions withdrawals-meterer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ impl WithdrawalsMeter {
/// Given a set of withdrawal ids meter all of them to a metric
/// with a given name.
pub async fn meter_withdrawals_storage(&mut self, ids: &[i64]) -> Result<(), storage::Error> {
vlog::info!("meter_withdrawals_storage start");

let withdrawals = storage::get_withdrawals(&self.pool, ids).await?;

vlog::info!("meter_withdrawals_storage continued");

self.meter_withdrawals(&withdrawals).await?;

vlog::info!("meter_withdrawals_storage end");

Ok(())
}

Expand Down

0 comments on commit 7bd5c57

Please sign in to comment.