Skip to content
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

fix: Prevent error when using logging from background isolate #634

Merged

Commits on Jul 24, 2024

  1. fix: Prevent error when using logging from background isolate

    When creating a logger from a background isolate, Flutter would throw because WidgetsFlutterBinding wasn't initialized. This is specifically because we were adding a callback handler, which is not supported from background isolates.
    
    Add checks to both logs and RUM and prevent initialization of things we know won't work from background isolates.
    
    This is not full support for background isolates but usable as a work around.
    
    refs: #580
    fuzzybinary committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    ffe5925 View commit details
    Browse the repository at this point in the history