add hostname to fake env

This commit is contained in:
Sam 2015-05-06 12:28:32 +10:00
parent 124ae8ada6
commit 19e5304813

View file

@ -56,6 +56,8 @@ class SidekiqLogsterReporter < Sidekiq::ExceptionHandler::Logger
Logster.add_to_env(fake_env, :backtrace, ex.backtrace) Logster.add_to_env(fake_env, :backtrace, ex.backtrace)
end end
Logster.add_to_env(fake_env, :current_hostname, Discourse.current_hostname)
Thread.current[Logster::Logger::LOGSTER_ENV] = fake_env Thread.current[Logster::Logger::LOGSTER_ENV] = fake_env
Logster.logger.error(text) Logster.logger.error(text)
rescue => e rescue => e