Skip to content

Commit

Permalink
GODRIVER-2871 Unexport optional setter for internal-package logger (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez authored Jun 20, 2023
1 parent 30f817c commit e748329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/mongo/driver/topology/server_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ func WithServerLoadBalanced(fn func(bool) bool) ServerOption {
}
}

// WithLogger configures the logger for the server to use.
func WithLogger(fn func() *logger.Logger) ServerOption {
// withLogger configures the logger for the server to use.
func withLogger(fn func() *logger.Logger) ServerOption {
return func(cfg *serverConfig) {
cfg.logger = fn()
}
Expand Down
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/topology_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func NewConfig(co *options.ClientOptions, clock *session.ClusterClock) (*Config,

serverOpts = append(
serverOpts,
WithLogger(func() *logger.Logger { return log }),
withLogger(func() *logger.Logger { return log }),
)
}

Expand Down

0 comments on commit e748329

Please sign in to comment.