views:

60

answers:

1

I'd like to use the DEBUG logging level for my Rails app on our staging server, but I'd like delayed_job (which logs a SELECT statement to the main Rails log every 10 seconds) to log at INFO level, so I don't get these delayed_job SELECT statements in there.

Is this possible?

A: 

I just ran into this. What I did in my script that runs Delayed::Job.worker.start was to add, before the worker starts:

RAILS_DEFAULT_LOGGER.level = Logger::INFO

This worked for me.

Jason Yanowitz