Skip to content
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: added disable-request-logging flag #260

Closed
wants to merge 2 commits into from
Closed

feat: added disable-request-logging flag #260

wants to merge 2 commits into from

Conversation

james-milligan
Copy link
Contributor

Signed-off-by: James Milligan james@omnant.co.uk
Leaving as draft until this pr is merged

This PR

  • adds the disable-request-logging flag to start command of flagd

Related Issues

Notes

Follow-up Tasks

How to test

Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <james@omnant.co.uk>
@james-milligan
Copy link
Contributor Author

direction change to use the --debug flag to wrap this behaviour

james-milligan added a commit to open-feature/flagd that referenced this pull request Dec 2, 2022
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

- The `--debug` flag now also controls the logging for requests, when
set all logging levels are enabled for the `XXXWithID` `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
internal `reqIDLogging` field, this field is also set to false when the
`*zap.Logger` argument is nil

### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->

### Notes
<!-- any additional notes for this PR -->

### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->
This flag should be set by default in the operator
open-feature/open-feature-operator#260
### How to test
<!-- if applicable, add testing instructions under this section -->

Signed-off-by: James Milligan <james@omnant.co.uk>
Signed-off-by: James Milligan <75740990+james-milligan@users.noreply.github.com>
Co-authored-by: Skye Gill <gill.skye95@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant