mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
We should protect the call to response
This commit is contained in:
parent
ef946bf7fe
commit
e8fa681bb8
1 changed files with 9 additions and 0 deletions
|
|
@ -49,6 +49,15 @@ module GrapeLogging
|
|||
end
|
||||
|
||||
protected
|
||||
|
||||
def response
|
||||
begin
|
||||
super
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def parameters
|
||||
{
|
||||
status: response.try(:status),
|
||||
|
|
|
|||
Loading…
Reference in a new issue