From e2c698ff4439e3164970f336548e79ffe912aac9 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sun, 19 Apr 2020 11:56:41 +0300 Subject: [PATCH] Remove some log messages --- src/Executor.ts | 4 +--- src/utils.ts | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Executor.ts b/src/Executor.ts index 1ec7fdf..68f5ec9 100644 --- a/src/Executor.ts +++ b/src/Executor.ts @@ -36,7 +36,6 @@ export class Executor { } private renderTaskQueue() { - this.logger.log('RENDER TASK QUEUE'); new TaskQueueRenderer().render(this.scheduler.getTaskItems()); } @@ -54,8 +53,7 @@ export class Executor { const actionCommand = this.scheduler.nextAction(); - this.logger.log('CURRENT TASK', taskCommand); - this.logger.log('CURRENT ACTION', actionCommand); + this.logger.log('CURRENT JOB', 'TASK', taskCommand, 'ACTION', actionCommand); try { if (actionCommand) { diff --git a/src/utils.ts b/src/utils.ts index 37d5e08..ea539e8 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -5,20 +5,17 @@ export function sleep(ms: number) { } export async function sleepMicro() { - let ms = 1000 + Math.random() * 1000; - console.log('SLEEP SHORT', Math.round(ms / 1000)); + let ms = 1000 + Math.random() * 2000; return await sleep(ms); } export async function sleepShort() { let ms = 3000 + Math.random() * 1000; - console.log('SLEEP SHORT', Math.round(ms / 1000)); return await sleep(ms); } export async function sleepLong() { let ms = 120_000 + Math.random() * 300_000; - console.log('SLEEP LONG', Math.round(ms / 1000)); return await sleep(ms); }