Skip to content

Commit

Permalink
thread.backtrace is sometimes nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Sep 24, 2012
1 parent b0fa69a commit a30a4c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sidekiq/cli.rb
Expand Up @@ -18,7 +18,11 @@
trap 'TTIN' do
Thread.list.each do |thread|
Sidekiq.logger.info "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
Sidekiq.logger.info thread.backtrace.join("\n")
if thread.backtrace
Sidekiq.logger.info thread.backtrace.join("\n")
else
Sidekiq.logger.info "<no backtrace available>"
end
end
end

Expand Down

0 comments on commit a30a4c8

Please sign in to comment.