iron-io/iron_worker_ruby — Issue #27: Rails.logger is undefined
Author: bsedat-tinfoil
Created: 2012-02-15 19:21:15+00:00
State: open

It would be great if the Rails.logger was set/configurable within workers when running rails code. Right now we've seen other gems (specifically the DelayedJob gem) error out due to Rails.logger being undefined:

`/mnt/sw_jobs/u9189/user_dir/gems/delayed_job/lib/delayed/worker.rb:22:in `': undefined method `logger' for Rails:Module (NoMethodError)
from /mnt/sw_jobs/u9189/user_dir/gems/delayed_job/lib/delayed/worker.rb:8:in `'
from /mnt/sw_jobs/u9189/user_dir/gems/delayed_job/lib/delayed/worker.rb:7:in `'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /mnt/sw_jobs/u9189/user_dir/gems/delayed_job/lib/delayed_job.rb:8:in `'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /mnt/sw_jobs/u9189/user_dir/runner.rb:63:in `

'`