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

Improve logging of simulate-block-prodution #4773

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

ryoqun
Copy link
Collaborator

@ryoqun ryoqun commented Feb 4, 2025

Problem

ledger-tool simulate-block-production needs some more love to create these charts without any out-of-tree patches: https://docs.google.com/spreadsheets/d/1agMkAyGBIcdugkc8z3v7xPwV5L1Zu3zVA41fxYDPClQ/edit?usp=sharing

Summary of Changes

At first step, apply these logging cleanups from #2325.

@ryoqun ryoqun requested a review from apfitzge February 4, 2025 04:44
@ryoqun ryoqun force-pushed the simulate-block-production-logging branch from 42e6ee4 to b1380cc Compare February 4, 2025 06:25
);
}

fn log_ongoing_bank_cost(&self, bank: &Bank) {
fn log_ongoing_bank_cost(&self, bank: &Bank, bank_elapsed: Duration) {
debug!(
Copy link

@apfitzge apfitzge Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to think if there's a situation for simulation where we wouldn't want this to be logged. i.e. should we just switch this to info so its logged by default for simulation?

I'd lean towards yes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice suggestion!: 70b3758

@ryoqun ryoqun requested a review from apfitzge February 5, 2025 04:05
@ryoqun ryoqun force-pushed the simulate-block-production-logging branch from 70b3758 to fe470e2 Compare February 5, 2025 13:45
@ryoqun ryoqun added the automerge automerge Merge this Pull Request automatically once CI passes label Feb 5, 2025
Copy link

mergify bot commented Feb 5, 2025

automerge label removed due to a CI failure

@mergify mergify bot removed the automerge automerge Merge this Pull Request automatically once CI passes label Feb 5, 2025
@ryoqun ryoqun merged commit b61839b into anza-xyz:master Feb 6, 2025
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants