Skip to content

Pass our logger to MongoDB package #71

@magnusbaeck

Description

@magnusbaeck

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions