Skip to content

Raven intercepts errors even if not installed #320

Closed
@basicallydan

Description

@basicallydan

Hey there! Thanks for making Raven and Sentry, they are super awesome, apart from one small issue

We have this bit of code:

    if (settings.APP_SENTRY_DSN) {
        Raven.config(settings.APP_SENTRY_DSN).install();
        Raven.setUserContext({
            id:userId,
            email:userEmail
        });
    }

Basically, we don't config and install raven unless there's a DSN. Whether there's a DSN or not is environment-specific, so we don't have one for local environments, for instance.

However, even if it never gets installed, Raven still seems to be intercepting errors, only we can't see the detail now. All we can see is, in the console:

 <error>

The stacktrace appears to be recursive calls to captureMessage, like so:

errors

It does look like to me that Raven treats lack of config as an error, rather than allowing the error to just continue being thrown. Is that right?

Looking forward to your response :)

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