-
Notifications
You must be signed in to change notification settings - Fork 92
chore(supervisor): error logs consistency #1889
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.
8000By 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
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smol comments
#[display( | ||
"BlockRef {{ number: {number}, hash: {hash}, parent_hash: {parent_hash}, timestamp: {timestamp} }}" | ||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[display( | |
"BlockRef {{ number: {number}, hash: {hash}, parent_hash: {parent_hash}, timestamp: {timestamp} }}" | |
)] | |
#[display( | |
"number: {number}, hash: {hash}, parent_hash: {parent_hash}, timestamp: {timestamp}" | |
)] |
this looks like the debug format, the suggested format is expected for display, see docs https://doc.rust-lang.org/rust-by-example/hello/print/print_display.html
})?; | ||
|
||
let block = block_option.ok_or_else(|| { | ||
warn!(target: "supervisor_storage", block_number, "Block not found"); | ||
StorageError::EntryNotFound(format!("Block {} not found", block_number)) | ||
StorageError::EntryNotFound(format!("block {} not found", block_number)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StorageError::EntryNotFound(format!("block {} not found", block_number)) | |
StorageError::EntryNotFound(format!("block {block_number} not found")) |
"log not found at block {} index {}", | ||
block_number, log.index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"log not found at block {} index {}", | |
block_number, log.index | |
"log not found at block {block_number} index {}", | |
log.index |
/// This method is append only and does not overwrite existing pairs. | ||
/// Ensures that the latest stored pair is the parent of the incoming pair before saving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
No description provided.