mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: keep bin/unicorn clean from log noise
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
if Rails.env.development? && !Sidekiq.server?
|
||||
if Rails.env.development? && !Sidekiq.server? && ENV["RAILS_LOGS_STDOUT"] == "1"
|
||||
console = ActiveSupport::Logger.new(STDOUT)
|
||||
original_logger = Rails.logger.chained.first
|
||||
console.formatter = original_logger.formatter
|
||||
|
||||
Reference in New Issue
Block a user