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