1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #280 from betelgeuse/stack_traces_to_logger

Log thread stacktraces via Sidekiq.logger
This commit is contained in:
Mike Perham 2012-07-04 08:53:39 -07:00
commit 25ef23dbf6

View file

@ -17,8 +17,8 @@ end
trap 'TTIN' do
Thread.list.each do |thread|
puts "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
puts thread.backtrace.join("\n")
Sidekiq.logger.info "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
Sidekiq.logger.info thread.backtrace.join("\n")
end
end