guzru / winston-sentry

Sentry transport for winston logger for node js
MIT License
82 stars 37 forks source link

Log Level seems to be ignored #31

Closed felixheck closed 8 years ago

felixheck commented 8 years ago

Hey guys,

I'm currently using winston-sentry in an express application, like below:

var logger = new winston.Logger({
    transports: [
        new WinstonSentry({
            level: 'error',
            dsn: '{{ MY_DSN }}'
        })
    ],
    exceptionHandlers: [
        new winston.transports.File({
            filename: '{{ MY_FILENAME }}',
            json: false
        })
    ],
    exitOnError: false
});

Whenever I call logger.info() the passed message will be send to Sentry despite the mismatch concerning the log level.

Have you got any hints? Thanks!

mathieumg commented 8 years ago

I have the same problem since 0.1.2 as well!

shaharke commented 8 years ago

@felixheck @mathieumg problem was fixed. Upgrade to 0.1.3

felixheck commented 8 years ago

Yeah, that was fast. Love it. Thanks man!