mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-26 14:47:48 +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
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
def response
|
||||||
|
begin
|
||||||
|
super
|
||||||
|
rescue
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def parameters
|
def parameters
|
||||||
{
|
{
|
||||||
status: response.try(:status),
|
status: response.try(:status),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue