diff options
Diffstat (limited to 'lib/receiver/worker.rb')
-rw-r--r-- | lib/receiver/worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/receiver/worker.rb b/lib/receiver/worker.rb index 5387a8c..dcdc57a 100644 --- a/lib/receiver/worker.rb +++ b/lib/receiver/worker.rb @@ -242,7 +242,9 @@ class Receiver::Worker < DaemonSpawn::Base def initialize(opts = {}) super(opts) - ActiveRecord::Base.logger = Rails.logger = Logger.new(STDOUT) + _logger = Logger.new(STDOUT) + _logger.level = Rails.env.production? ? Logger::INFO : Logger::DEBUG + ActiveRecord::Base.logger = Rails.logger = _logger end def start(args) |