judge: add request trace (#934)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
undefinedandpanda authored and GitHub committed 2025-01-26 20:13:53 +08:00
1 parent 74c8b0ef32
commit f3eb6ca55c
9 files changed
+63 -47

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ export class JudgeTask {
env: this.env,
time: 5000,
memory: 256,
});
}, `analysis[${this.lang}]<${this.rid}>`, 5);
const out = r.stdout.toString();
if (out.length) this.next({ compilerText: out.substring(0, 1024) });
if (process.env.DEV) console.log(r);