Skip to content

Commit

Permalink
Merge pull request #2016 from ChainSafe/P0/SyncChain-log-headers
Browse files Browse the repository at this point in the history
add epoch and status headers to SyncChain stuck logs
  • Loading branch information
wemeetagain authored Feb 2, 2021
2 parents a0990dc + 321170c commit 8cf8836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lodestar/src/sync/range/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ export class SyncChain {
return `
startEpoch: ${this.startEpoch}
batches: ${this.batches.size}
\t${"epoch"} \t${"status"}
\t${"-----"} \t${"------"}
${batchesMetadata.map(({startEpoch, status}) => `\t${startEpoch} \t${status}`).join("\n")}
`;
}
Expand Down

0 comments on commit 8cf8836

Please sign in to comment.