Skip to content

Commit ff9a1b7

Browse files
committed
allow overriding using the LOG_LEVEL env var
1 parent 3b2be18 commit ff9a1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_stdout_logging/rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.heroku_stdout_logger
88
end
99

1010
def self.log_level
11-
([::Rails.application.config.log_level.to_s.upcase, "INFO"] & %w[DEBUG INFO WARN ERROR FATAL UNKNOWN]).compact.first
11+
([(ENV['LOG_LEVEL'] || ::Rails.application.config.log_level).to_s.upcase, "INFO"] & %w[DEBUG INFO WARN ERROR FATAL UNKNOWN]).compact.first
1212
end
1313

1414
def self.set_logger

0 commit comments

Comments
 (0)