Ruby on Rails Monday, May 3, 2010


Hello,

I have a backgrounDrb worker calling a ActiveRecord object, ex:

worker:

def process_campaign
   Campaign.process
end

campaign.rb:

Campaign < ActiveRecord::Base
..
..

def self.process
  logger.info("Start processing...")
end


If I test in dev env, the line logger.info("Start processing...") throws the correct log info to development.log

However, in production the method process is called bu the log line is not written to production.log
If I call the method process from a Controller, the log is written to production.log.

Can someone point me something where I should start looking?


Thank you

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment