Skip to content

Commit

Permalink
Merge pull request #1800 from MushroomObserver/nimmo-reformat-logs-7.1.2
Browse files Browse the repository at this point in the history
Maybe fix `config.log_level`
  • Loading branch information
nimmolo committed Jan 13, 2024
2 parents b05b7cb + f2e7a59 commit 0ccf711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ GEM
mini_mime (1.1.5)
mini_racer (0.8.0)
libv8-node (~> 18.16.0.0)
minitest (5.21.0)
minitest (5.21.1)
minitest-reporters (1.6.1)
ansi
builder
Expand All @@ -185,7 +185,7 @@ GEM
nokogiri (1.16.0-x86_64-linux)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.0.2)
parser (3.3.0.3)
ast (~> 2.4.1)
racc
psych (4.0.6)
Expand Down
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@

# Log to production.log. New 7.1 logging uses BroadcastLogger
# Not using TaggedLogging yet.
# NOTE: setting `level: Logger::INFO` is a temporary fix
# https://github.com/rails/rails/pull/50337
loggers = [
"log/production.log"
].map do |output|
ActiveSupport::Logger.new(output).
ActiveSupport::Logger.new(output, level: Logger::INFO).
tap { |logger| logger.formatter = Logger::Formatter.new }
# .then { |logger| ActiveSupport::TaggedLogging.new(logger) }
end
Expand Down

0 comments on commit 0ccf711

Please sign in to comment.