revert: "chore(executor/sandbox): log pbReq byte size"
Some checks failed
submodules sync / sync (push) Successful in 42s
build / build (push) Successful in 1m29s
build / trigger-build-image (push) Failing after 6s

This reverts commit 6931f3d102.
This commit is contained in:
张泊明518370910136 2024-11-14 03:27:14 -05:00
parent 6931f3d102
commit d5857e15b5
GPG Key ID: D47306D7062CDA9D

View File

@ -7,7 +7,6 @@ import (
"github.com/criyle/go-judge/pb"
"github.com/joint-online-judge/JOJ3/internal/stage"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
)
@ -43,14 +42,7 @@ func (e *Sandbox) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
slog.Debug("sandbox execute", "i", i, "pbCmd size", proto.Size(pbCmd))
}
pbReq := &pb.Request{Cmd: pbCmds}
pbReqBytes, err := protojson.Marshal(pbReq)
if err != nil {
slog.Error("failed to marshal json", "error", err)
}
slog.Info("sandbox execute",
"pbReq size", proto.Size(pbReq),
"pbReqBytes size", len(pbReqBytes),
)
slog.Info("sandbox execute", "pbReq size", proto.Size(pbReq))
pbRet, err := e.execClient.Exec(context.TODO(), pbReq)
if err != nil {
return nil, err