Browse Source

Change verbose level.

master
t123yh 7 years ago
parent
commit
dcfeb591c9
  1. 1
      src/frontend-syzoj/rmq.ts
  2. 2
      src/winston-common.ts

1
src/frontend-syzoj/rmq.ts

@ -34,6 +34,7 @@ async function newChannel(): Promise<amqp.Channel> {
} }
export function pushTask(task: any) { export function pushTask(task: any) {
winston.info("Got task", task);
publicChannel.sendToQueue(rmqCommon.judgeQueueName, msgpack.encode(task), { publicChannel.sendToQueue(rmqCommon.judgeQueueName, msgpack.encode(task), {
priority: task.content.priority priority: task.content.priority
}); });

2
src/winston-common.ts

@ -16,6 +16,6 @@ export function configureWinston(verbose: boolean) {
if (verbose) { if (verbose) {
(winston as any).level = 'debug'; (winston as any).level = 'debug';
} else { } else {
(winston as any).level = 'warn'; (winston as any).level = 'info';
} }
} }
Loading…
Cancel
Save