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:
commit
25ef23dbf6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue