mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
Show the failure of the call
This commit is contained in:
parent
e8fa681bb8
commit
d45d4956a9
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ module GrapeLogging
|
||||||
|
|
||||||
def parameters
|
def parameters
|
||||||
{
|
{
|
||||||
status: response.try(:status),
|
status: response.nil? ? 'fail' : response.status,
|
||||||
time: {
|
time: {
|
||||||
total: total_runtime,
|
total: total_runtime,
|
||||||
db: db_runtime,
|
db: db_runtime,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue