Remove some log messages

This commit is contained in:
Anton Vakhrushev 2020-04-19 11:56:41 +03:00
parent 24ceb04307
commit e2c698ff44
2 changed files with 2 additions and 7 deletions

View File

@ -36,7 +36,6 @@ export class Executor {
} }
private renderTaskQueue() { private renderTaskQueue() {
this.logger.log('RENDER TASK QUEUE');
new TaskQueueRenderer().render(this.scheduler.getTaskItems()); new TaskQueueRenderer().render(this.scheduler.getTaskItems());
} }
@ -54,8 +53,7 @@ export class Executor {
const actionCommand = this.scheduler.nextAction(); const actionCommand = this.scheduler.nextAction();
this.logger.log('CURRENT TASK', taskCommand); this.logger.log('CURRENT JOB', 'TASK', taskCommand, 'ACTION', actionCommand);
this.logger.log('CURRENT ACTION', actionCommand);
try { try {
if (actionCommand) { if (actionCommand) {

View File

@ -5,20 +5,17 @@ export function sleep(ms: number) {
} }
export async function sleepMicro() { export async function sleepMicro() {
let ms = 1000 + Math.random() * 1000; let ms = 1000 + Math.random() * 2000;
console.log('SLEEP SHORT', Math.round(ms / 1000));
return await sleep(ms); return await sleep(ms);
} }
export async function sleepShort() { export async function sleepShort() {
let ms = 3000 + Math.random() * 1000; let ms = 3000 + Math.random() * 1000;
console.log('SLEEP SHORT', Math.round(ms / 1000));
return await sleep(ms); return await sleep(ms);
} }
export async function sleepLong() { export async function sleepLong() {
let ms = 120_000 + Math.random() * 300_000; let ms = 120_000 + Math.random() * 300_000;
console.log('SLEEP LONG', Math.round(ms / 1000));
return await sleep(ms); return await sleep(ms);
} }