feat: enable request logging via the --debug flag#226
feat: enable request logging via the --debug flag#226james-milligan merged 14 commits intoopen-feature:mainfrom james-milligan:noop-logger
Conversation
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
|
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 <james@omnant.co.uk>
…into noop-logger
Signed-off-by: James Milligan <james@omnant.co.uk>
I have introduced this change |
This makes sense to me as well. |
Co-authored-by: Skye Gill <gill.skye95@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Co-authored-by: Skye Gill <gill.skye95@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Co-authored-by: Skye Gill <gill.skye95@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Co-authored-by: Skye Gill <gill.skye95@gmail.com> Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
|
Is this ready for review now? |
yes :) |
|
@james-milligan please resolve conversations that have been addressed. |
Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
🤖 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>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR
--debugflag now also controls the logging for requests, when set all logging levels are enabled for theXXXWithIDloggermethods and allows the setting of request fields, allowing for improved performance when logs are not required.NewLoggernow takes an additional boolean argument to set the internalreqIDLoggingfield, this field is also set to false when the*zap.Loggerargument 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