Skip to content

More specific logging to differentiate failures on the "submit" action #6087

@anikbrazeau

Description

@anikbrazeau

Context

From #incident-2025-08-13-users-blocked-from-submitting

Description

Upon incident investigation, we saw that the logged error try-catch wraps a lot of code, including:

  • Prisma database call (to retrieve template)
  • Redis call (to retrieve hCaptcha feature flag)
  • hCaptcha API call
  • Invoking the Submission Lambda
  • Sending notifications
  • Extended outages

We might want to refactor the submit function and improving the granularity of logging and messages for submit to help diagnose problems, that are all wrapped in same try…catch and provide more specific and narrow logging messages for each of these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions