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 ...@@ -186,7 +186,7 @@ module Gitlab
end end
def log_level def log_level
debug_logging? ? :debug : Rails.logger.level # rubocop:disable Gitlab/RailsLogger debug_logging? ? :debug : Rails.logger.level
end end
def debug_logging? def debug_logging?
......
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
end end
def self.build 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 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