From 8c57aef3f81267e709cc08d9ed308facb9a42553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 12 May 2015 19:39:17 +0200 Subject: [PATCH] log the hostname when restarting sidekiq --- config/unicorn.conf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index 8d47c8682..977f973c1 100644 --- a/config/unicorn.conf.rb +++ b/config/unicorn.conf.rb @@ -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