Skip to content

how to reinitialize rollbar #337

@bongolegend

Description

@bongolegend

I'd like to reinitialize rollbar, to connect to a different rollbar project. Looks like this isn't currently supported, but I found a hacky solution. Is it bad to do this? Are there negative side-effects?

pyrollbar 0.14.5

In [1]: import rollbar
In [2]: rollbar.init('first')
In [3]: rollbar.init('second')
WARNING:rollbar:Rollbar already initialized. Ignoring re-init.
In [4]: rollbar._initialized
Out[4]: True
In [5]: rollbar._initialized = False
In [6]: rollbar.init('second')

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