Skip to content

Commit

Permalink
improve presync round log in runtime loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Feb 15, 2024
1 parent c794a1b commit 7a43fea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/engine/paima-runtime/src/runtime-loops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ async function runPresync(

for (const network of Object.keys(networks)) {
if (upper[network] > presyncBlockHeight[network]) {
doLog(`[presync-round] ${network}: ${presyncBlockHeight[network]}-${upper[network]}`);
doLog(
`[paima-runtime] Fetching data from ${network} in range: ${presyncBlockHeight[network]}-${upper[network]}`
);
} else {
doLog(`[presync-round] ${network}: ${presyncBlockHeight[network]}`);
doLog(
`[paima-runtime] Fetching data from ${network} in block: ${presyncBlockHeight[network]}`
);
}
}

Expand Down

0 comments on commit 7a43fea

Please sign in to comment.