From b72b7f6e927af1924ef33f1e076c2ef134c6edc1 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 13 Oct 2022 09:17:28 +0000 Subject: [PATCH] fix: use helper logger in dev helpers --- --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -386,7 +386,7 @@ const eventIdStr = `${eventSection}.${eventMethod}`; const waitLimitStr = `wait blocks remaining: ${maxBlocksToWait}`; - console.log(`[Block #${blockNumber}] Waiting for event \`${eventIdStr}\` (${waitLimitStr})`); + this.helper.logger.log(`[Block #${blockNumber}] Waiting for event \`${eventIdStr}\` (${waitLimitStr})`); const apiAt = await this.helper.getApi().at(blockHash); const eventRecords = (await apiAt.query.system.events()) as any; @@ -401,7 +401,7 @@ } else if (maxBlocksToWait > 0) { maxBlocksToWait--; } else { - console.log(`Event \`${eventIdStr}\` is NOT found`); + this.helper.logger.log(`Event \`${eventIdStr}\` is NOT found`); unsubscribe(); resolve(null); -- gitstuff