mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Prefer DYNO name over system hostname on Heroku, fixes #1742
This commit is contained in:
parent
0d2904a7a5
commit
24f5ba7029
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
3.1.3
|
||||
-----------
|
||||
|
||||
- Use ENV['DYNO'] on Heroku for hostname display, rather than an ugly UUID. [#1742]
|
||||
|
||||
|
||||
3.1.2
|
||||
-----------
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def hostname
|
||||
Socket.gethostname
|
||||
ENV['DYNO'] || Socket.gethostname
|
||||
end
|
||||
|
||||
def identity
|
||||
|
|
Loading…
Reference in a new issue