diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-05-24 03:45:02 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-05-24 03:45:02 +0300 |
commit | ed8ebc635a06380e04f2e82df6e65095314a54d2 (patch) | |
tree | 20f6db06d89c676cdd54e8137ee180e426eb7e7e /lib/gitlab/auth_logger.rb | |
parent | d64e6cabc71beaba5dc726aad76050ae61305016 (diff) |
Changes RackAttack logger to use structured logs
Creates a new filename to register auth logs.
This change should allow SRE's queries to make better queries
through logging infrastructure.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54528
Diffstat (limited to 'lib/gitlab/auth_logger.rb')
-rw-r--r-- | lib/gitlab/auth_logger.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/auth_logger.rb b/lib/gitlab/auth_logger.rb new file mode 100644 index 00000000000..6d3edba02b0 --- /dev/null +++ b/lib/gitlab/auth_logger.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Gitlab + class AuthLogger < Gitlab::JsonLogger + def self.file_name_noext + 'auth' + end + end +end |