Merge pull request #1360 from TildeWill/patch-1

Make DJ logs visible when running in foreground

Andrew Cantino 9 ans auparavant
Parent
Commettre
692844f12f
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      config/initializers/delayed_job.rb

+ 1 - 0
config/initializers/delayed_job.rb

@@ -5,6 +5,7 @@ Delayed::Worker.read_ahead = 5
5 5
 Delayed::Worker.default_priority = 10
6 6
 Delayed::Worker.delay_jobs = !Rails.env.test?
7 7
 Delayed::Worker.sleep_delay = (ENV['DELAYED_JOB_SLEEP_DELAY'].presence || 10).to_f
8
+Delayed::Worker.logger = Rails.logger
8 9
 
9 10
 # Delayed::Worker.logger = Logger.new(Rails.root.join('log', 'delayed_job.log'))
10 11
 # Delayed::Worker.logger.level = Logger::DEBUG