From 19e53048131884269ffed0616ceb3c0b9d218f49 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 6 May 2015 12:28:32 +1000 Subject: [PATCH] add hostname to fake env --- config/initializers/sidekiq.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index d47699478..2d634e49e 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -56,6 +56,8 @@ class SidekiqLogsterReporter < Sidekiq::ExceptionHandler::Logger Logster.add_to_env(fake_env, :backtrace, ex.backtrace) end + Logster.add_to_env(fake_env, :current_hostname, Discourse.current_hostname) + Thread.current[Logster::Logger::LOGSTER_ENV] = fake_env Logster.logger.error(text) rescue => e