aptos-core
aptos-core copied to clipboard
Add git hash to aptos logger
trafficstars
Description
This PR adds git_hash to each of the humio log lines.
When debugging for execution divergence or other compat errors, it's good to easily get the version of the codebase that the validator is running. This fastens the debugging process and eliminates the need to match with different grafana dashboards.
How Has This Been Tested?
The humio logs for forge e2e test contains the git hash.
Key Areas to Review
Type of Change
- [ ] New feature
- [ ] Bug fix
- [ ] Breaking change
- [ ] Performance improvement
- [ ] Refactoring
- [ ] Dependency update
- [ ] Documentation update
- [x] Tests
Which Components or Systems Does This Change Impact?
- [ ] Validator Node
- [ ] Full Node (API, Indexer, etc.)
- [ ] Move/Aptos Virtual Machine
- [ ] Aptos Framework
- [ ] Aptos CLI/SDK
- [x] Developer Infrastructure
- [ ] Move Compiler
- [ ] Other (specify)
Checklist
- [x] I have read and followed the CONTRIBUTING doc
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I identified and added all stakeholders and component owners affected by this change as reviewers
- [x] I tested both happy and unhappy path of the functionality
- [x] I have made corresponding changes to the documentation