Skip to content

Commit

Permalink
Reactivate STDOUT loggingwq
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Dec 29, 2023
1 parent 3bd76b8 commit a088d24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
# require 'syslog/logger'
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

# if ENV["RAILS_LOG_TO_STDOUT"].present?
# logger = ActiveSupport::Logger.new(STDOUT)
# logger.formatter = config.log_formatter
# config.logger = ActiveSupport::TaggedLogging.new(logger)
# end
if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
Expand Down

0 comments on commit a088d24

Please sign in to comment.