Commit 72b6bc82 authored by Peter Leitzen's avatar Peter Leitzen

Enable Gitlab/RailsLogger rules for two code locations

parent 57e19bd6
......@@ -186,7 +186,7 @@ module Gitlab
end
def log_level
debug_logging? ? :debug : Rails.logger.level # rubocop:disable Gitlab/RailsLogger
debug_logging? ? :debug : Rails.logger.level
end
def debug_logging?
......
......@@ -14,7 +14,7 @@ module Gitlab
end
def self.build
super.tap { |logger| logger.level = Rails.logger.level } # rubocop:disable Gitlab/RailsLogger
super.tap { |logger| logger.level = Rails.logger.level }
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment