Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Sep 7, 2023
1 parent c4e36bd commit b8902c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ func (r *Relayer) RelayMessage(warpLogInfo *vmtypes.WarpLogInfo, metrics *Messag
err = r.db.Put(r.sourceChainID, []byte(database.LatestSeenBlockKey), []byte(strconv.FormatUint(warpLogInfo.BlockNumber, 10)))
if err != nil {
r.logger.Error(
fmt.Sprintf("failed to put %s into database", database.LatestSeenBlockKey), zap.Error(err))
fmt.Sprintf("failed to put %s into database", database.LatestSeenBlockKey),
zap.Error(err),
)
}

return nil
Expand Down
6 changes: 3 additions & 3 deletions vms/evm/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ func (s *subscriber) UpdateLatestSeenBlock() error {
err = s.db.Put(s.chainID, []byte(database.LatestSeenBlockKey), []byte(strconv.FormatUint(latestBlock, 10)))
if err != nil {
s.logger.Error(
fmt.Sprintf("failed to put %s into database",
zap.String("chainID", s.chainID.String()),
database.LatestSeenBlockKey), zap.Error(err),
fmt.Sprintf("failed to put %s into database", database.LatestSeenBlockKey),
zap.String("chainID", s.chainID.String()),
zap.Error(err),
)
return err
}
Expand Down

0 comments on commit b8902c5

Please sign in to comment.