From 16a55b89ba5ad571c007d42e916f3ccccfd84543 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Wed, 18 Dec 2024 12:51:30 +0400 Subject: [PATCH] Log info instead of warn --- .../codegen/src/eventFetching/hyperfuel/HyperFuel.res | 6 +++--- .../codegen/src/eventFetching/hypersync/HyperSync.res | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codegenerator/cli/templates/static/codegen/src/eventFetching/hyperfuel/HyperFuel.res b/codegenerator/cli/templates/static/codegen/src/eventFetching/hyperfuel/HyperFuel.res index a04ea58cf..e719a62e3 100644 --- a/codegenerator/cli/templates/static/codegen/src/eventFetching/hyperfuel/HyperFuel.res +++ b/codegenerator/cli/templates/static/codegen/src/eventFetching/hyperfuel/HyperFuel.res @@ -206,7 +206,7 @@ module LogsQuery = { if res.nextBlock <= fromBlock { // Might happen when /height response was from another instance of HyperSync Js.Exn.raiseError( - "Received page response from another instance of HyperSync. Should work after a retry.", + "Received page response from another instance of HyperFuel. Should work after a retry.", ) } res @@ -271,8 +271,8 @@ module BlockData = { if res.nextBlock <= blockNumber { let logger = Logging.createChild(~params={"url": serverUrl}) let delayMilliseconds = 100 - logger->Logging.childWarn( - `Block #${blockNumber->Int.toString} not found in HyperSync. HyperSync has multiple instances and it's possible that they drift independently slightly from the head. Indexing should continue correctly after retrying the query in ${delayMilliseconds->Int.toString}ms.`, + logger->Logging.childInfo( + `Block #${blockNumber->Int.toString} not found in HyperFuel. HyperFuel has multiple instances and it's possible that they drift independently slightly from the head. Indexing should continue correctly after retrying the query in ${delayMilliseconds->Int.toString}ms.`, ) await Time.resolvePromiseAfterDelay(~delayMilliseconds) await queryBlockData(~serverUrl, ~blockNumber, ~logger) diff --git a/codegenerator/cli/templates/static/codegen/src/eventFetching/hypersync/HyperSync.res b/codegenerator/cli/templates/static/codegen/src/eventFetching/hypersync/HyperSync.res index 14ac3e12f..d88ce82a9 100644 --- a/codegenerator/cli/templates/static/codegen/src/eventFetching/hypersync/HyperSync.res +++ b/codegenerator/cli/templates/static/codegen/src/eventFetching/hypersync/HyperSync.res @@ -315,7 +315,7 @@ module BlockData = { | None => { let logger = Logging.createChild(~params={"url": serverUrl}) let delayMilliseconds = 100 - logger->Logging.childWarn( + logger->Logging.childInfo( `Block #${blockNumber->Int.toString} not found in HyperSync. HyperSync has multiple instances and it's possible that they drift independently slightly from the head. Indexing should continue correctly after retrying the query in ${delayMilliseconds->Int.toString}ms.`, ) await Time.resolvePromiseAfterDelay(~delayMilliseconds)