Skip to content

String formatting doesnt work properly when passing an error object as first argument #35

Description

@maxholman

Doesn't work, %s not replaced

logger.debug(err, 'Error during transaction: %s', err.message);

Does work, %s replace with the err.message

logger.debug({ err }, 'Error during transaction: %s', err.message);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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