-
Notifications
You must be signed in to change notification settings - Fork 48
Replace global logger with local logger in tlscommon package #348
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
Conversation
💚 Build Succeeded
History
|
andrzej-stencel
left a comment
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 agree a phased approach to the breaking change may help users of this API. Other than that, the PR looks good. I'm approving it from my side and will let @kruskall and @khushijain21 reach a conclusion on the breaking change approach.
|
As discussed in our sync meeting - we would rather do a breaking change now that would cause some churn than have users of this API continue to use global logger. |
the suggestion was to remove the global logger in a backward compatible way. The current method should be updated to use noop logger if nothing is passed. I'll dismiss my review to unblock but don't feel comfortable approving. |
What does this PR do?
This PR supports additonal options on certain method in
tlscommonpackage to accept a local logger.Note: This PR includes breaking changes as well - but those methods are not used by
elastic-agentensuring the blast radius is smallThis is part of the effort to get rid of global states.
Why is it important?
Checklist
Related issues