mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove git_version from DiscourseLogstashLogger log event (#27730)
In our official Docker image, running git commands results in the following error: ``` fatal: detected dubious ownership in repository at '/var/www/discourse' To add an exception for this directory, call: git config --global --add safe.directory /var/www/discourse ```
This commit is contained in:
committed by
GitHub
parent
72fd509fd4
commit
bb0daa33cd
@@ -2,12 +2,10 @@
|
||||
|
||||
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
|
||||
|
||||
@@ -67,7 +65,6 @@ 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.
|
||||
|
||||
Reference in New Issue
Block a user