mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Don't execute a git command each time we log a log line (#30177)
We already have a `GIT_VERSION` constant in `DiscourseLogstashLogger` so we can just use that.
This commit is contained in:
committed by
GitHub
parent
4ddf7e61f9
commit
25ce1f3399
@@ -67,7 +67,7 @@ class DiscourseLogstashLogger < Logger
|
||||
"pid" => PROCESS_PID,
|
||||
"type" => @type.to_s,
|
||||
"host" => HOST,
|
||||
"git_version" => GitUtils.git_version,
|
||||
"git_version" => GIT_VERSION,
|
||||
}
|
||||
|
||||
# Only log backtrace and env for Logger::WARN and above.
|
||||
|
||||
Reference in New Issue
Block a user