We should protect the call to response

This commit is contained in:
jules 2016-02-29 16:32:43 +01:00
parent ef946bf7fe
commit e8fa681bb8

View file

@ -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),