Commit 9714d2f01bc06577dd50f952d767a1112786b576
Committed by
Rodrigo Souto
1 parent
0318fee8
Exists in
staging
and in
41 other branches
api: fix logger
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/request_logger.rb
@@ -9,7 +9,7 @@ module Noosfero | @@ -9,7 +9,7 @@ module Noosfero | ||
9 | path: request.path, | 9 | path: request.path, |
10 | params: request.params.to_hash.except('password'), | 10 | params: request.params.to_hash.except('password'), |
11 | method: request.request_method, | 11 | method: request.request_method, |
12 | - total: total_runtime, | 12 | + total: (duration * 1000).round(2), |
13 | db: @db_duration.round(2), | 13 | db: @db_duration.round(2), |
14 | } | 14 | } |
15 | end | 15 | end |