diff options
author | Stan Hu <stanhu@gmail.com> | 2019-07-20 01:17:54 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-22 22:56:03 +0300 |
commit | 71045b89f6f0e9c347526b2d90f945dfbcbebdcc (patch) | |
tree | 2dd770a1e512e6fdece303314ecba5ee093f4150 /lib/gitlab/git_logger.rb | |
parent | 0e6c76a7bb1f8fa67d124b2ba013602af6579bce (diff) |
Convert githost.log to JSON format
This will make it easier to parse this in production and adds the
`correlation_id` if available.
Diffstat (limited to 'lib/gitlab/git_logger.rb')
-rw-r--r-- | lib/gitlab/git_logger.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/git_logger.rb b/lib/gitlab/git_logger.rb index dac4ddd320f..ded5349be01 100644 --- a/lib/gitlab/git_logger.rb +++ b/lib/gitlab/git_logger.rb @@ -1,13 +1,9 @@ # frozen_string_literal: true module Gitlab - class GitLogger < Gitlab::Logger + class GitLogger < JsonLogger def self.file_name_noext 'githost' end - - def format_message(severity, timestamp, progname, msg) - "#{timestamp.to_s(:long)} -> #{severity} -> #{msg}\n" - end end end |