Skip to content

Commit

Permalink
Use warn for printing TTIN, so people don't configure away the abilit…
Browse files Browse the repository at this point in the history
…y to debug
  • Loading branch information
mperham committed Sep 19, 2014
1 parent 808d847 commit e70ae85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sidekiq/cli.rb
Expand Up @@ -138,11 +138,11 @@ def handle_signal(sig)
end
when 'TTIN'
Thread.list.each do |thread|
Sidekiq.logger.info "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
Sidekiq.logger.warn "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
if thread.backtrace
Sidekiq.logger.info thread.backtrace.join("\n")
Sidekiq.logger.warn thread.backtrace.join("\n")
else
Sidekiq.logger.info "<no backtrace available>"
Sidekiq.logger.warn "<no backtrace available>"
end
end
end
Expand Down

0 comments on commit e70ae85

Please sign in to comment.