From ef1cd8f41bef75889bcd2f6d91056e1f22c7e5ae Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 4 Mar 2024 03:14:35 -0500 Subject: [PATCH] fix: remove debugging logs --- README.md | 1 - internal/executors/sandbox/executor.go | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index ccc301d..1a304db 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ go build -o ./build/joj3 ./cmd/joj3 + ./../../build/joj3 2024/03/04 02:57:50 INFO stage start name=compile 2024/03/04 02:57:50 INFO sandbox run cmd="{Args:[/usr/bin/g++ a.cc -o a] Env:[PATH=/usr/bin:/bin] Files:[0xc00007f540 0xc00007f580 0xc00007f5c0] CPULimit:10000000000 RealCPULimit:0 ClockLimit:0 MemoryLimit:104857600 StackLimit:0 ProcLimit:50 CPURateLimit:0 CPUSetLimit: CopyIn:map[] CopyInCached:map[] CopyInCwd:true CopyOut:[stdout stderr] CopyOutCached:[a] CopyOutMax:0 CopyOutDir: TTY:false StrictMemoryLimit:false DataSegmentLimit:false AddressSpaceLimit:false}" -2024/03/04 02:57:50 INFO sandbox run copyInCwd=true 2024/03/04 02:57:50 INFO sandbox run ret="results:{status:Accepted time:298002000 runTime:298694146 memory:57880576 files:{key:\"stderr\" value:\"\"} files:{key:\"stdout\" value:\"\"} fileIDs:{key:\"a\" value:\"DMTRJR3V\"}}" 2024/03/04 02:57:50 INFO executor done result="{Status:Accepted ExitStatus:0 Error: Time:298.002ms RunTime:298.694146ms Memory:55.2 MiB Files:map[stderr:len:0 stdout:len:0] FileIDs:map[a:DMTRJR3V] FileError:[]}" 2024/03/04 02:57:50 INFO parser done result="&{Score:100 Comment:compile done, executor status: run time: 298694146 ns, memory: 57880576 bytes}" diff --git a/internal/executors/sandbox/executor.go b/internal/executors/sandbox/executor.go index 3bed920..5c03ad5 100644 --- a/internal/executors/sandbox/executor.go +++ b/internal/executors/sandbox/executor.go @@ -27,7 +27,6 @@ func (e *Sandbox) Run(cmd stage.Cmd) (*stage.ExecutorResult, error) { } } if cmd.CopyInCwd { - slog.Info("sandbox run", "copyInCwd", true) err := filepath.Walk(".", func(path string, info os.FileInfo, err error) error { if err != nil {