Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds logging to investigate hangs #211

Merged
merged 2 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading