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

Pass our logger to MongoDB package #71

Open
magnusbaeck opened this issue Jul 4, 2023 · 0 comments
Open

Pass our logger to MongoDB package #71

magnusbaeck opened this issue Jul 4, 2023 · 0 comments

Comments

@magnusbaeck
Copy link
Member

Description

go.mongodb.org/mongo-driver v1.12.0 (that we'll upgrade to in #69) adds the ability to pass a custom logger to the driver "to more easily record detailed information about connection management and command execution within their application" (release notes). Their logger interface isn't compatible with logrus so we'll have to write an adapter type.

Motivation

Additional logs from the database driver could be useful when debugging problems.

Exemplification

N/A

Benefits

More logs.

Possible Drawbacks

More logs :-)

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

No branches or pull requests

1 participant