diff options
Diffstat (limited to 'lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb')
-rw-r--r-- | lib/gitlab/grape_logging/formatters/lograge_with_timestamp.rb | 6 |
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" |