Skip to content

Commit

Permalink
chore: improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Nov 14, 2023
1 parent 23ac551 commit e13211e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/relayer/session/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func (rs *relayerSessionsManager) newMapClaimSessionFn(
return either.Error[relayer.SessionTree](err), false
}

latestBlock := rs.blockClient.LatestBlock(ctx)
log.Printf("INFO: currentBlock: %d, submitting claim", latestBlock.Height()+1)

sessionHeader := session.GetSessionHeader()
if err := rs.supplierClient.CreateClaim(ctx, *sessionHeader, claimRoot); err != nil {
failedCreateClaimSessionsPublishCh <- session
Expand Down
2 changes: 1 addition & 1 deletion pkg/relayer/session/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (rs *relayerSessionsManager) newMapProveSessionFn(
return either.Error[relayer.SessionTree](err), false
}

log.Printf("currentBlock: %d, submitting proof", latestBlock.Height()+1)
log.Printf("INFO: currentBlock: %d, submitting proof", latestBlock.Height()+1)
// SubmitProof ensures on-chain proof inclusion so we can safely prune the tree.
if err := rs.supplierClient.SubmitProof(
ctx,
Expand Down

0 comments on commit e13211e

Please sign in to comment.