1
0
forked from JOJ/JOJ3

feat(executor): debug log protobuf request

This commit is contained in:
张泊明518370910136 2024-11-06 03:08:41 -05:00
parent a2ae94dbcd
commit d9fd85d4a5
Signed by untrusted user: 张泊明518370910136
GPG Key ID: D47306D7062CDA9D

View File

@ -37,6 +37,7 @@ func (e *Sandbox) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
} }
} }
pbReq := &pb.Request{Cmd: convertPBCmd(cmds)} pbReq := &pb.Request{Cmd: convertPBCmd(cmds)}
slog.Debug("sandbox execute", "protobuf request", pbReq)
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