From dcfeb591c9a207ce541dc825fa04c9db2df08521 Mon Sep 17 00:00:00 2001 From: t123yh Date: Fri, 25 Aug 2017 21:39:24 +0800 Subject: [PATCH] Change verbose level. --- src/frontend-syzoj/rmq.ts | 1 + src/winston-common.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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