Skip to content

Commit 0edc658

Browse files
committed
fix: replace TaggedLogging.logger(STDOUT) with TaggedLogging.new
mcp gem (transitive dep of kamal 2.10.1) adds a 0-arg logger method to Module/Kernel, causing ArgumentError when Rails evaluates .logger(STDOUT). Use the correct Rails 8 pattern: TaggedLogging.new(Logger.new(STDOUT)).
1 parent bc1d7ef commit 0edc658

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Log to STDOUT with the current request id as a default log tag.
3434
config.log_tags = [ :request_id ]
35-
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
35+
config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT))
3636

3737
# Change to "debug" to log everything (including potentially personally-identifiable information!)
3838
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")

0 commit comments

Comments
 (0)