feat: store logs in different folders based on the chain#3948
Merged
onbjerg merged 6 commits intoparadigmxyz:mainfrom Jul 31, 2023
Merged
feat: store logs in different folders based on the chain#3948onbjerg merged 6 commits intoparadigmxyz:mainfrom
onbjerg merged 6 commits intoparadigmxyz:mainfrom
Conversation
Codecov Report
... and 8 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Rjected
requested changes
Jul 27, 2023
Contributor
Author
|
At the end I chose the following option:
This actually turned out the best decision because you can delete some fields to the I also added a test to verify that the directory is properly parsed. Let me know what do you think. |
1182d39 to
27e84c0
Compare
onbjerg
approved these changes
Jul 31, 2023
Rjected
approved these changes
Jul 31, 2023
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.
Closes #3858
When
--log.persistentflag is enabled, logs are now stored in different folders based on the chain or in the already-chain-specific--datadir.Examples (no --datadir flag):
~/.cache/reth/logs/mainnet/reth.log~/.cache/reth/logs/sepolia/reth.logExamples (with --datadir flag):
~/custom-data-dir/reth.log