Skip to content

Grape - some responses might not be logged #157

@braktar

Description

@braktar

Hi,

The grape events are saved through the "format_response.grape" event.

It appears that some responses from grape never reach this event :

  • responses with a status 204
  • The ones rescued and passing through the error! method

I found no way to distinct these cases using the payload and save the event at a previous notification.
Any idea to catch it in a clean and generic manner ?

I can provide a PR to reproduce these cases if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions