-
Notifications
You must be signed in to change notification settings - Fork 26
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.
By 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
feat: print diff on config change #202
Conversation
af0b0b1
to
4fc4d10
Compare
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.
I like this - minor comment but LGTM
When the configuration file is updated, the logger will print the updated sections at the DEBUG level. The implementation is straightforward and does not rely on any external libraries, making it particularly useful for troubleshooting. Output: ``` time=2025-01-28T11:46:03.911+01:00 level=INFO msg="loading a new config" path=docs/extproc-config.yaml time=2025-01-28T11:46:03.911+01:00 level=DEBUG msg="config line changed" line=14 path=docs/extproc-config.yaml old="weight: 1" new="weight: 0" ``` Signed-off-by: Sébastien Han <[email protected]>
4fc4d10
to
bd9a408
Compare
@leseb could you not force-push as per CONTRIBUTING.md? |
also, could you modify the PR description so that it follows the template |
Signed-off-by: Sébastien Han <[email protected]>
dbee65d
to
827bf4b
Compare
I had to do another force-push on the second commit since DCO was complaining... |
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.
Thank you!!
Thanks! So when CI is green I'll amend it to have a single final commit and force-push, is that alright? |
well, all PRs will be squash-merged, so you don't need to do that |
Commit Message:
feat: print diff on config change
When the configuration file is updated, the logger will print the
updated sections at the DEBUG level. The implementation is
straightforward and does not rely on any external libraries, making it
particularly useful for troubleshooting.
Output:
Signed-off-by: Sébastien Han [email protected]
Related Issues/PRs (if applicable):
Special notes for reviewers (if applicable):