Skip to content

'handleExceptions: true' log twice #18

@RafeSafari

Description

@RafeSafari

There is only one transport, added like this:

winston.add(winston.createLogger({
    transports: [
        new winston.transports.Console({
            handleExceptions: true,
            format: winston.format.combine(
                winston.format.simple()
            ),
        }),
    ]
}));

When a new Error thrown from index.js:
throw new Error('++++ I will log twice ++++')
will result in two separate logs!

I've also tried transport.File({ ... }), but the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions