fix substitution - :fired:

This commit is contained in:
Régis Hanol 2015-05-12 19:43:25 +02:00
parent 8c57aef3f8
commit 0a41ec59e8
1 changed files with 1 additions and 1 deletions

View File

@ -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) for '%1', restarting" % [(max_rss.to_f / 1.megabyte), ENV["DISCOURSE_HOSTNAME"]])
Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM) for '%s', restarting" % [(max_rss.to_f / 1.megabyte), ENV["DISCOURSE_HOSTNAME"]])
restart = true
end