diff options
Diffstat (limited to 'lib/gitlab/app_logger.rb')
-rw-r--r-- | lib/gitlab/app_logger.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gitlab/app_logger.rb b/lib/gitlab/app_logger.rb index 40bdc538594..decc6be3410 100644 --- a/lib/gitlab/app_logger.rb +++ b/lib/gitlab/app_logger.rb @@ -2,18 +2,12 @@ module Gitlab class AppLogger < Gitlab::MultiDestinationLogger - LOGGERS = [Gitlab::AppTextLogger, Gitlab::AppJsonLogger].freeze - def self.loggers - if Gitlab::Utils.to_boolean(ENV.fetch('UNSTRUCTURED_RAILS_LOG', 'false')) - LOGGERS - else - [Gitlab::AppJsonLogger] - end + [Gitlab::AppJsonLogger] end def self.primary_logger - Gitlab::AppTextLogger + Gitlab::AppJsonLogger end end end |