Skip to content

Make TaskFailureLogger more powerful #341

@samtstern

Description

@samtstern

TaskFailureLogger is used throughout the auth module to catch and log errors. There are certain common developer errors that we could catch and add context to.

For example if we see OPERATION_NOT_ALLOWED we could do the following:

  • Figure out via FlowParams which operation we were attempting
  • Log something like You tried to sign in with {Foo} but have not enabled {Foo} in the Firebase console. Visit {url} to enable it. We could confidently do this at the Log.w() or Log.e() level since we know it's a user-visible failure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions