-
Notifications
You must be signed in to change notification settings - Fork 71
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: enable request logging via the --debug flag #226
Conversation
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
To disable logging I have to pass |
We could have the request logging disabled by default and only enable it with the --debug flag? |
Sounds much better to me |
Signed-off-by: James Milligan <[email protected]>
…into noop-logger
Signed-off-by: James Milligan <[email protected]>
I have introduced this change |
This makes sense to me as well. |
Co-authored-by: Skye Gill <[email protected]> Signed-off-by: James Milligan <[email protected]>
Co-authored-by: Skye Gill <[email protected]> Signed-off-by: James Milligan <[email protected]>
Co-authored-by: Skye Gill <[email protected]> Signed-off-by: James Milligan <[email protected]>
Co-authored-by: Skye Gill <[email protected]> Signed-off-by: James Milligan <[email protected]>
Is this ready for review now? |
yes :) |
@james-milligan please resolve conversations that have been addressed. |
Signed-off-by: James Milligan <[email protected]>
Signed-off-by: James Milligan <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.2.7](v0.2.5...v0.2.7) (2022-12-02) ### ⚠ BREAKING CHANGES * start command flag refactor ([#222](#222)) ### Features * enable request logging via the --debug flag ([#226](#226)) ([11954b5](11954b5)) * Resurrected the STATIC flag reason. Documented the caching strategy. ([#224](#224)) ([5830592](5830592)) * snap ([#211](#211)) ([c619844](c619844)) * start command flag refactor ([#222](#222)) ([14474cc](14474cc)) ### Miscellaneous Chores * release v0.2.6 ([93cfb78](93cfb78)) * release v0.2.7 ([4a9f6df](4a9f6df)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR
--debug
flag now also controls the logging for requests, when set all logging levels are enabled for theXXXWithID
logger
methods and allows the setting of request fields, allowing for improved performance when logs are not required.NewLogger
now takes an additional boolean argument to set the internalreqIDLogging
field, this field is also set to false when the*zap.Logger
argument is nilRelated Issues
Notes
Follow-up Tasks
This flag should be set by default in the operator
open-feature/open-feature-operator#260
How to test