How to debug resque job in rails application How to debug resque job in rails application ruby-on-rails ruby-on-rails

How to debug resque job in rails application


Why not use the Logger facility?

log = Logger.new 'log/resque.log'log.debug "foo bar"

And then tail -f your newly generated log in "#{Rails.root}/log/resque.log'. Remember to restart your resque workers as they cache the code and won't pick up changes like the rest of your development environment!


Rails.logger should work fine:

Rails.logger.debug('foo bar')