fix(#1970): additional log function gating for efficiency when not logging (#1971)

* fix(#1970): additional log function gating for efficiency when not logging

* fix(#1970): additional log function gating for efficiency when not logging
This commit is contained in:
Alexander Courtis
2023-02-06 10:23:20 +11:00
committed by GitHub
parent 59e65d88db
commit 02fdc262eb
4 changed files with 38 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ function Runner:_getopts(stdout_handle, stderr_handle)
end
function Runner:_log_raw_output(output)
if output and type(output) == "string" then
if log.enabled "git" and output and type(output) == "string" then
log.raw("git", "%s", output)
log.line("git", "done")
end