log to the logger, not to the rails module

This commit is contained in:
Maxwell Salzberg 2012-02-21 13:27:17 -08:00
parent d0162e05f2
commit aa3ffbea7f

View file

@ -15,7 +15,7 @@ module Jobs
begin
yield
rescue Exception => e
Rails.info("error in job: #{e.message}")
Rails.logger.info("error in job: #{e.message}")
unless DUMB_ERROR_MESSAGES.include?(e.message)
raise e
end