mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
add hostname to fake env
This commit is contained in:
parent
124ae8ada6
commit
19e5304813
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue