mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #1328 from mperham/issue/1320/method_name_collision
Fix method name collision between Sidekiq::Fetcher and Sidekiq::Exceptio...
This commit is contained in:
commit
5f6ef51251
1 changed files with 2 additions and 2 deletions
|
@ -41,13 +41,13 @@ module Sidekiq
|
||||||
after(0) { fetch }
|
after(0) { fetch }
|
||||||
end
|
end
|
||||||
rescue => ex
|
rescue => ex
|
||||||
handle_exception(ex)
|
handle_fetch_exception(ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_exception(ex)
|
def handle_fetch_exception(ex)
|
||||||
if !@down
|
if !@down
|
||||||
logger.error("Error fetching message: #{ex}")
|
logger.error("Error fetching message: #{ex}")
|
||||||
ex.backtrace.each do |bt|
|
ex.backtrace.each do |bt|
|
||||||
|
|
Loading…
Add table
Reference in a new issue