mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
response.body is an Array of Strings. We should get the first element and It should be serialized
This commit is contained in:
parent
7997b21b17
commit
3fd1ba13f3
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ module GrapeLogging
|
||||||
class Response < GrapeLogging::Loggers::Base
|
class Response < GrapeLogging::Loggers::Base
|
||||||
def parameters(request, response)
|
def parameters(request, response)
|
||||||
{
|
{
|
||||||
response: JSON.parse(response.body)
|
response: JSON.parse(response.body.first)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue