rob05c commented on code in PR #6962:
URL: https://github.com/apache/trafficcontrol/pull/6962#discussion_r930472577
##########
cache-config/t3c-apply/torequest/cmd.go:
##########
@@ -531,17 +551,18 @@ func requestConfig(cfg config.Cfg) ([]byte, error) {
stdOut := ([]byte)(nil)
stdErr := ([]byte)(nil)
code := 0
+ t3cpath := filepath.Join(t3cutil.InstallDir(), `t3c`)
if len(cacheBts) > 0 {
- stdOut, stdErr, code = t3cutil.DoInput(cacheBts, `t3c`, args...)
+ stdOut, stdErr, code = t3cutil.DoInput(cacheBts, t3cpath,
args...)
} else {
- stdOut, stdErr, code = t3cutil.Do(`t3c`, args...)
+ stdOut, stdErr, code = t3cutil.Do(t3cpath, args...)
}
if code != 0 {
- logSubAppErr(`t3c-request stdout`, stdOut)
- logSubAppErr(`t3c-request stderr`, stdErr)
- return nil, fmt.Errorf("t3c-request returned non-zero exit code
%v, see log for details", code)
+ logSubAppErr(`t3c stdout`, stdOut)
+ logSubAppErr(`t3c stderr`, stdErr)
+ return nil, fmt.Errorf("t3c returned non-zero exit code %v, see
log for details", code)
}
- logSubApp(`t3c-request`, stdErr)
+ logSubApp(`t3c`, stdErr)
Review Comment:
Looks like this should be `logSubApp(t3creq, stdErr)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]