Skip to content

Commit

Permalink
Log info instead of warn
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh committed Dec 18, 2024
1 parent 1b78955 commit 16a55b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16a55b8

Please sign in to comment.