core: add logger for task

This commit is contained in:
undefined committed 2020-10-30 14:50:16 +08:00
1 parent 3af3453166
commit b3aa0a5e09
5 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.1.9",
"version": "2.1.10",
"main": "package.json",
"author": "masnn",
"dependencies": {
+1 -1
View File
@@ -193,7 +193,7 @@ async function readAutoCases(folder, { next }) {
return config;
}
export async function readYamlCases(folder: string, cfg: Dictionary<any>, args) {
export async function readYamlCases(folder: string, cfg: Dictionary<any> = {}, args) {
const config: any = {
checker_type: 'default',
count: 0,
+1
View File
@@ -187,6 +187,7 @@ async function postInit() {
this.stat = {};
this.stat.receive = new Date();
this.request = request;
logger.debug('%o', request);
}
async handle() {