mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Display the full Redis connection in Web footer
This commit is contained in:
parent
f956b0d7d5
commit
462bc4cee1
2 changed files with 5 additions and 1 deletions
|
@ -76,6 +76,10 @@ module Sidekiq
|
|||
def location
|
||||
Sidekiq.redis { |conn| conn.client.location }
|
||||
end
|
||||
|
||||
def redis_connection
|
||||
Sidekiq.redis { |conn| conn.client.id }
|
||||
end
|
||||
|
||||
def namespace
|
||||
@@ns ||= Sidekiq.redis {|conn| conn.respond_to?(:namespace) ? conn.namespace : nil }
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<p class="navbar-text" style="color:white;">Sidekiq v<%= Sidekiq::VERSION %></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="navbar-text">Redis: <%= location %></p>
|
||||
<p class="navbar-text">Redis: <%= redis_connection %></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="navbar-text"><%= t('Time') %>: <%= Time.now.utc.strftime('%H:%M:%S UTC') %></p>
|
||||
|
|
Loading…
Add table
Reference in a new issue