Skip to content

Improve logging of simulate-block-prodution#4773

Merged
ryoqun merged 2 commits intoanza-xyz:masterfrom
ryoqun:simulate-block-production-logging
Feb 6, 2025
Merged

Improve logging of simulate-block-prodution#4773
ryoqun merged 2 commits intoanza-xyz:masterfrom
ryoqun:simulate-block-production-logging

Conversation

@ryoqun
Copy link
Copy Markdown
Member

@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
Comment thread core/src/banking_simulation.rs Outdated

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

@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
Copy Markdown
Member 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
@mergify
Copy link
Copy Markdown

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
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