feat(executor): debug log protobuf cmds
Some checks failed
build / trigger-build-image (push) Blocked by required conditions
submodules sync / sync (push) Successful in 40s
build / build (push) Failing after 11m38s

This commit is contained in:
张泊明518370910136 2024-11-06 03:16:35 -05:00
parent d9fd85d4a5
commit 8bc1b8284d
GPG Key ID: D47306D7062CDA9D

View File

@ -36,8 +36,9 @@ func (e *Sandbox) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
} }
} }
} }
pbReq := &pb.Request{Cmd: convertPBCmd(cmds)} pbCmds := convertPBCmd(cmds)
slog.Debug("sandbox execute", "protobuf request", pbReq) slog.Debug("sandbox execute", "protobuf cmds", pbCmds)
pbReq := &pb.Request{Cmd: pbCmds}
pbRet, err := e.execClient.Exec(context.TODO(), pbReq) pbRet, err := e.execClient.Exec(context.TODO(), pbReq)
if err != nil { if err != nil {
return nil, err return nil, err