log to the logger, not to the rails module
This commit is contained in:
parent
d0162e05f2
commit
aa3ffbea7f
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ module Jobs
|
||||||
begin
|
begin
|
||||||
yield
|
yield
|
||||||
rescue Exception => e
|
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)
|
unless DUMB_ERROR_MESSAGES.include?(e.message)
|
||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue