diff --git a/src/frontend-syzoj/rmq.ts b/src/frontend-syzoj/rmq.ts index 5dcc4fa..be04f8b 100644 --- a/src/frontend-syzoj/rmq.ts +++ b/src/frontend-syzoj/rmq.ts @@ -34,6 +34,7 @@ async function newChannel(): Promise { } export function pushTask(task: any) { + winston.info("Got task", task); publicChannel.sendToQueue(rmqCommon.judgeQueueName, msgpack.encode(task), { priority: task.content.priority }); diff --git a/src/winston-common.ts b/src/winston-common.ts index 21da8d9..0ff2101 100644 --- a/src/winston-common.ts +++ b/src/winston-common.ts @@ -16,6 +16,6 @@ export function configureWinston(verbose: boolean) { if (verbose) { (winston as any).level = 'debug'; } else { - (winston as any).level = 'warn'; + (winston as any).level = 'info'; } } \ No newline at end of file