Skip to content

WIP feat!(mongodb-log-writer): add ability to disable logging MONGOSH-1988 #500

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

Closed
wants to merge 4 commits into from

Conversation

gagik
Copy link
Collaborator

@gagik gagik commented Jan 22, 2025

WIP - do not review

Adds a new isDisabled field to disable the writing of logs. This can be modified using the new enable() and disable() methods.

See: mongodb-js/mongosh#2325

gagik added 2 commits January 22, 2025 00:49
Adds a new isDisabled field to disable the writing of logs. This can be modified using the new enable() and disable() methods.
…instead of parameters

This is a breaking change which I believe would be useful for the future to create better consistency between LogManager and LogWriter and scale better as we add more parameters to log writer settings.
@gagik gagik changed the title feat(mongodb-log-writer): add ability to disable logging MONGOSH-1988 feat!(mongodb-log-writer): add ability to disable logging MONGOSH-1988 Jan 22, 2025
@gagik gagik force-pushed the gagik/add-disable branch from ac54f39 to 5f383d0 Compare January 22, 2025 14:15
@gagik gagik requested a review from alenakhineika January 22, 2025 14:15
@gagik gagik changed the title feat!(mongodb-log-writer): add ability to disable logging MONGOSH-1988 WIP feat!(mongodb-log-writer): add ability to disable logging MONGOSH-1988 Jan 22, 2025
@gagik gagik marked this pull request as draft January 22, 2025 16:12
@addaleax
Copy link
Collaborator

The point of using something like dummySink from the tech design was to avoid maintaining this extra state here, did something change?

@gagik
Copy link
Collaborator Author

gagik commented Jan 23, 2025

@addaleax This is about to get revamped as I didn't originally follow the tech design, thus I put it into draft again

@gagik
Copy link
Collaborator Author

gagik commented Jan 23, 2025

Closing as there are no changes needed in the log writer package itself for the purposes of mongodb-js/mongosh#2325

@gagik gagik closed this Jan 23, 2025
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.

2 participants