title: How to ignore Delayed Job query logging in development on Rails
body: <p>How would I silence/ignore these Delayed Job query logs from log/development.log?</p>
  
  <pre><code>Delayed::Backend::ActiveRecord::Job Load (1.0ms)  UPDATE "delayed_jobs" SET locked_at = '2013-11-19 19:55:45.053991', locked_by = 'host:desktop-virtual pid:22277' WHERE id IN (SELECT id FROM "delayed_jobs" WHERE ((run_at &lt;= '2013-11-19 19:55:45.053435' AND (locked_at IS NULL OR locked_at &lt; '2013-11-19 15:55:45.053519') OR locked_by = 'host:desktop-virtual pid:22277') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
  Delayed::Backend::ActiveRecord::Job Load (1.4ms)  UPDATE "delayed_jobs" SET locked_at = '2013-11-19 19:55:50.056977', locked_by = 'host:desktop-virtual pid:22277' WHERE id IN (SELECT id FROM "delayed_jobs" WHERE ((run_at &lt;= '2013-11-19 19:55:50.056484' AND (locked_at IS NULL OR locked_at &lt; '2013-11-19 15:55:50.056530') OR locked_by = 'host:desktop-virtual pid:22277') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
  </code></pre>
  
  <p>I've tried adding this to <code>config/initializers/delayed_job.rb</code> and it routes everything but the interval query logs which still get put in <code>log/development.log</code>.</p>
  
  <pre><code>if Rails.env == "development"
    Delayed::Worker.logger = Logger.new(File.join(Rails.root, "log", "delayed_job.log"))
  end
  </code></pre>
  
  <p>Thank you.</p>