Skip to content

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

@maxholman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions