revert: "chore(executor/sandbox): log pbReq byte size"
This reverts commit 6931f3d102
.
This commit is contained in:
parent
6931f3d102
commit
d5857e15b5
|
@ -7,7 +7,6 @@ import (
|
||||||
|
|
||||||
"github.com/criyle/go-judge/pb"
|
"github.com/criyle/go-judge/pb"
|
||||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
|
||||||
"google.golang.org/protobuf/proto"
|
"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))
|
slog.Debug("sandbox execute", "i", i, "pbCmd size", proto.Size(pbCmd))
|
||||||
}
|
}
|
||||||
pbReq := &pb.Request{Cmd: pbCmds}
|
pbReq := &pb.Request{Cmd: pbCmds}
|
||||||
pbReqBytes, err := protojson.Marshal(pbReq)
|
slog.Info("sandbox execute", "pbReq size", proto.Size(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),
|
|
||||||
)
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user