-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch all uncaught errors #4
Comments
Yes, you can setup Like this: https://github.com/aandrewww/winston-transport-sentry-node/blob/master/src/transport.ts#L69 To be more universal, needed to make changes to the code |
@aandrewww ok that should do the trick. But I think it would be nice to make that a configuration option if you want to capture exceptions without having to set the log level to |
@aandrewww This doesn't seem to catch uncaught exceptions which seems to be a feature in Winston. The line you referenced seems to be for logging errors, e.g. with I've experienced this myself using this transport where an uncaught exception was logged to the console (since the transport is configured with I tried to wrap this transport in |
I think I have the same problem. While the
|
How have you solved? |
Hello,
I've been using this transport that has an outdated version of winston and Sentry. In it, it has an option called
pathGlobal
that it will catch all uncaught errors. Is there something like this in this transport?Thanks
The text was updated successfully, but these errors were encountered: