mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
response.body is sometimes too strange to be parse by JSON
This commit is contained in:
parent
7fb15d204c
commit
b8bd70e57b
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: response.body.map{ |body| JSON.parse(body) }
|
response: response.body
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue