From d648b04eef66a9cbc1da9577f5209d9a30106922 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 8 May 2014 08:05:28 +1000 Subject: [PATCH] forgot to reconnect logster post fork --- lib/discourse.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/discourse.rb b/lib/discourse.rb index 835636aba0f..3797a7a1da3 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -245,10 +245,12 @@ module Discourse SiteSetting.after_fork $redis.client.reconnect Rails.cache.reconnect + Logster.store.redis.reconnect # shuts down all connections in the pool Sidekiq.redis_pool.shutdown{|c| nil} # re-establish Sidekiq.redis = sidekiq_redis_config + nil end def self.sidekiq_redis_config