Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb')
-rw-r--r--lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb b/lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb
index 045a341f2ed..ac149cadb5b 100644
--- a/lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb
+++ b/lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb
@@ -15,9 +15,9 @@ module Gitlab
attributes = {
time: datetime.utc.iso8601(3),
severity: severity,
- duration: time[:total],
- db: time[:db],
- view: time[:view]
+ duration_s: Gitlab::Utils.ms_to_round_sec(time[:total]),
+ db_duration_s: Gitlab::Utils.ms_to_round_sec(time[:db]),
+ view_duration_s: Gitlab::Utils.ms_to_round_sec(time[:view])
}.merge!(data)
::Lograge.formatter.call(attributes) << "\n"