Browse Source

Remove verbose logs.

pull/6/head
t123yh 7 years ago
parent
commit
df03b5805f
  1. 2
      libs/judger.js
  2. 1
      modules/contest.js

2
libs/judger.js

@ -5,8 +5,6 @@ const enums = require('./enums'),
const util = require('util');
module.exports.judge = async function (judge_state, problem, priority) {
let type, param, extraFile = null;
console.log("JudgeState: " + util.inspect(judge_state));
console.log("Problem: " + util.inspect(judge_state));
switch (problem.type) {
case 'submit-answer':
type = enums.ProblemType.AnswerSubmission;

1
modules/contest.js

@ -506,7 +506,6 @@ app.get('/contest/:id/:pid/download/additional_file', async (req, res) => {
if (!problem.additional_file) throw new ErrorMessage('无附加文件。');
console.log(`additional_file_${id}_${pid}.zip`);
res.download(problem.additional_file.getPath(), `additional_file_${id}_${pid}.zip`);
} catch (e) {
syzoj.log(e);

Loading…
Cancel
Save