mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Explicitly test false to avoid warning on Ruby 2.0, fixes #869
This commit is contained in:
parent
16a6eb8783
commit
3eb6ad457c
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ module Sidekiq
|
|||
|
||||
if msg['backtrace'] == true
|
||||
msg['error_backtrace'] = e.backtrace
|
||||
elsif msg['backtrace'] == false
|
||||
# do nothing
|
||||
elsif msg['backtrace'].to_i != 0
|
||||
msg['error_backtrace'] = e.backtrace[0..msg['backtrace'].to_i]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue