Skip to content

parameters sent in the body of PUT and POST requests are not added to params #7

@buermann

Description

@buermann

It would be nice to get all the request params when adding the params to the lograge message with:

     log = { params: event.payload[:params]
  end```

Which can be accomplished by accessing the `env[Grape::Env::GRAPE_REQUEST].body.read()` String::IO object in Grape::Middleware::Lograge. I will create a PR but my solution of adding it to the parameters() method feels a little clumsy.

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