[Rust] Log selected backend log format at startup#13
Open
therealsaitama0 wants to merge 4 commits into
Open
Conversation
- Add argparse CLI with --verbose, --json, --threshold flags - Wrap subprocess.run calls in try/except with meaningful error messages - Support --json output for machine consumption - Allow --threshold N for minimum passing modules (default: 0) - Validate diagnostic JSON schema on read and report structural errors - Add pytest tests for schema validation and verification logic
5949a0b to
0fafc9e
Compare
0fafc9e to
c6f3a0f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a startup log field for the selected backend log format (TOT_LOG_FORMAT) so operators can confirm text/json mode from startup logs.
Changes
esolve_log_format() helper that reads TOT_LOG_FORMAT, defaults to ext, accepts json, and returns an error for invalid values.
esolve_log_format() before initializing tracing, selects JSON or plain text formatter based on the resolved format, and includes log_format in the startup info event.
Testing
ejects_invalid_value
Checklist
Payment
ETHEREUM ADDRESS: 0x5e1040927a1E28D740f92De27a3d493b81682D88