diff --git a/libs/account-lib/src/utils/blockchain-scanner.service.ts b/libs/account-lib/src/utils/blockchain-scanner.service.ts index b1273006..1698101a 100644 --- a/libs/account-lib/src/utils/blockchain-scanner.service.ts +++ b/libs/account-lib/src/utils/blockchain-scanner.service.ts @@ -14,7 +14,6 @@ export interface IBlockchainScanParameters { } export class EndOfChainError extends Error {} -export class NullScanError extends Error {} function eventName({ event: { section, method } }: FrameSystemEventRecord) { return `${section}.${method}`; @@ -92,12 +91,7 @@ export abstract class BlockchainScannerService { } } catch (e: any) { if (e instanceof EndOfChainError) { - this.logger.error(e.message); - return; - } - - if (e instanceof NullScanError) { - this.logger.verbose(e.message); + this.logger.debug(e.message); return; } diff --git a/libs/content-publishing-lib/src/utils/blockchain-scanner.service.ts b/libs/content-publishing-lib/src/utils/blockchain-scanner.service.ts index b7f464f1..25de641d 100644 --- a/libs/content-publishing-lib/src/utils/blockchain-scanner.service.ts +++ b/libs/content-publishing-lib/src/utils/blockchain-scanner.service.ts @@ -14,7 +14,6 @@ export interface IBlockchainScanParameters { } export class EndOfChainError extends Error {} -export class NullScanError extends Error {} export class SkipBlockError extends Error {} function eventName({ event: { section, method } }: FrameSystemEventRecord) { @@ -99,12 +98,7 @@ export abstract class BlockchainScannerService { } } catch (e) { if (e instanceof EndOfChainError) { - this.logger.error(e.message); - return; - } - - if (e instanceof NullScanError) { - this.logger.verbose(e.message); + this.logger.debug(e.message); return; } diff --git a/libs/content-watcher-lib/src/scanner/scanner.service.ts b/libs/content-watcher-lib/src/scanner/scanner.service.ts index 4fe1ee2b..1e97a77b 100644 --- a/libs/content-watcher-lib/src/scanner/scanner.service.ts +++ b/libs/content-watcher-lib/src/scanner/scanner.service.ts @@ -118,7 +118,7 @@ export class ScannerService implements OnApplicationBootstrap, OnApplicationShut const currentBlockNumber = await this.getNextBlockNumber(); const currentBlockHash = await this.blockchainService.getBlockHash(currentBlockNumber); if (currentBlockHash.isEmpty) { - this.logger.log( + this.logger.debug( `No new blocks to scan @ block number ${currentBlockNumber}; pausing scan until next interval`, ); break; diff --git a/libs/graph-lib/src/utils/blockchain-scanner.service.ts b/libs/graph-lib/src/utils/blockchain-scanner.service.ts index b7f464f1..25de641d 100644 --- a/libs/graph-lib/src/utils/blockchain-scanner.service.ts +++ b/libs/graph-lib/src/utils/blockchain-scanner.service.ts @@ -14,7 +14,6 @@ export interface IBlockchainScanParameters { } export class EndOfChainError extends Error {} -export class NullScanError extends Error {} export class SkipBlockError extends Error {} function eventName({ event: { section, method } }: FrameSystemEventRecord) { @@ -99,12 +98,7 @@ export abstract class BlockchainScannerService { } } catch (e) { if (e instanceof EndOfChainError) { - this.logger.error(e.message); - return; - } - - if (e instanceof NullScanError) { - this.logger.verbose(e.message); + this.logger.debug(e.message); return; }