1
0
forked from JOJ/JOJ3

feat(healthcheck): debug log args for teapot

This commit is contained in:
张泊明518370910136 2025-01-31 20:01:25 -05:00
parent df8ed72765
commit 55c53ea124
Signed by untrusted user: 张泊明518370910136
GPG Key ID: D47306D7062CDA9D

View File

@ -33,6 +33,7 @@ func runTeapot(conf *conf.Conf) (checkResults []CheckResult, err error) {
conf.Teapot.ScoreboardPath, conf.Teapot.ScoreboardPath,
"--group-config", strings.Join(formattedGroups, ","), "--group-config", strings.Join(formattedGroups, ","),
} }
slog.Debug("teapot check args", "args", args)
var stdoutBuf, stderrBuf bytes.Buffer var stdoutBuf, stderrBuf bytes.Buffer
cmd := exec.Command("joint-teapot", args...) // #nosec G204 cmd := exec.Command("joint-teapot", args...) // #nosec G204
cmd.Stdout = &stdoutBuf cmd.Stdout = &stdoutBuf