This reverts commit bb0daa33cd
.
This commit was not causing the problems we thought it was.
This commit is contained in:
parent
54fba2005f
commit
0b64cb9d8c
|
@ -2,10 +2,12 @@
|
|||
|
||||
require "json"
|
||||
require "socket"
|
||||
require_relative "git_utils"
|
||||
|
||||
class DiscourseLogstashLogger < Logger
|
||||
PROCESS_PID = Process.pid
|
||||
HOST = Socket.gethostname
|
||||
GIT_VERSION = GitUtils.git_version
|
||||
|
||||
attr_accessor :customize_event, :type
|
||||
|
||||
|
@ -65,6 +67,7 @@ class DiscourseLogstashLogger < Logger
|
|||
"pid" => PROCESS_PID,
|
||||
"type" => @type.to_s,
|
||||
"host" => HOST,
|
||||
"git_version" => GitUtils.git_version,
|
||||
}
|
||||
|
||||
# Only log backtrace and env for Logger::WARN and above.
|
||||
|
|
|
@ -21,6 +21,7 @@ RSpec.describe DiscourseLogstashLogger do
|
|||
"pid" => described_class::PROCESS_PID,
|
||||
"type" => "test",
|
||||
"host" => described_class::HOST,
|
||||
"git_version" => described_class::GIT_VERSION,
|
||||
"method" => "GET",
|
||||
"path" => "/",
|
||||
"format" => "html",
|
||||
|
|
Loading…
Reference in New Issue