You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CallErrorTracer produces repetitive, unstructured logs (tracing::error!("!! Got error flags:")) without context, making them hard to interpret. Additionally, handling for ExecutionResult::Revert and ExecutionResult::Halt lacks actionable insights or proper structuring.
Solution
Structured Logging
Replace unstructured error logs with clear, context-rich messages:
Include VM error flags.
Add transaction revert reasons where applicable.
Ensure logs provide actionable insights.
Update Handling for Revert/Halt Results
Enhance ExecutionResult::Revert and ExecutionResult::Halt handling to:
Log meaningful context (e.g., transaction details, reason for revert/halt).
Structure messages to align with improved logging standards.
Action Items
Refactor CallErrorTracer to:
Replace tracing::error!("!! Got error flags:") with structured logs.
Include VM error flags and relevant details.
Update handling for ExecutionResult::Revert and ExecutionResult::Halt:
Extract and log transaction context and revert/halt reasons.
Problem
The
CallErrorTracer
produces repetitive, unstructured logs (tracing::error!("!! Got error flags:")
) without context, making them hard to interpret. Additionally, handling forExecutionResult::Revert
andExecutionResult::Halt
lacks actionable insights or proper structuring.Solution
Structured Logging
Replace unstructured error logs with clear, context-rich messages:
Update Handling for Revert/Halt Results
Enhance
ExecutionResult::Revert
andExecutionResult::Halt
handling to:Action Items
CallErrorTracer
to:tracing::error!("!! Got error flags:")
with structured logs.ExecutionResult::Revert
andExecutionResult::Halt
:Example of current output:
The text was updated successfully, but these errors were encountered: