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

GODRIVER-2871 Unexport optional setter for internal-package logger #1296

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

prestonvasquez
Copy link
Collaborator

@prestonvasquez prestonvasquez commented Jun 15, 2023

GODRIVER-2871

Summary

This PR unexports the WithLogger server configuration setter. This function sets an internal-package object to the server configuration, which is useless to an external user.

Background & Motivation

The configuration of the topology server includes a functional setter that allows for the export of the Logger struct from the internal/logger package. However, since this setter is not intended for use by external users who cannot import data from the internal package, it is recommended to unexport the WithLogger function to prevent confusion.

This setter was added as a part of the work for GODRIVER-2586 , adding log messages to CMAP. WithLogger is not currently exported as part of the experimental API in an existing release.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@prestonvasquez prestonvasquez merged commit e748329 into mongodb:master Jun 20, 2023
@prestonvasquez prestonvasquez deleted the GODRIVER-2871 branch June 20, 2023 16:07
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.

3 participants