mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
log the hostname when restarting sidekiq
This commit is contained in:
parent
5754bb3654
commit
8c57aef3f8
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ before_fork do |server, worker|
|
|||
restart = false
|
||||
|
||||
if out_of_memory?
|
||||
Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM), restarting" % (max_rss.to_f / 1.megabyte))
|
||||
Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM) for '%1', restarting" % [(max_rss.to_f / 1.megabyte), ENV["DISCOURSE_HOSTNAME"]])
|
||||
restart = true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue