Commit 4ddf407d646d952f6bc3501c92327a68a861fb8c
Committed by
Rodrigo Souto
1 parent
4fe61138
Exists in
master
and in
29 other branches
api: fix logger
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
lib/noosfero/api/request_logger.rb
... | ... | @@ -7,10 +7,10 @@ module Noosfero |
7 | 7 | def parameters(response, duration) |
8 | 8 | { |
9 | 9 | path: request.path, |
10 | - params: request.params.except('password'), | |
10 | + params: request.params.to_hash.except('password'), | |
11 | 11 | method: request.request_method, |
12 | - total: (duration * 1000).round(2), | |
13 | - db: request.env[:db_duration].round(2), | |
12 | + total: total_runtime, | |
13 | + db: @db_duration.round(2), | |
14 | 14 | } |
15 | 15 | end |
16 | 16 | end | ... | ... |