Skip to content

Commit

Permalink
error to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesha Upadhyaya authored and Ganesha Upadhyaya committed Jul 25, 2023
1 parent a77221d commit 690e8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/sync_head.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *Syncer[H]) Head(ctx context.Context) (H, error) {
defer s.getter.Unlock()
netHead, err := s.getter.Head(ctx)
if err != nil {
log.Errorw("requesting head from trusted peer, returning subjective head which may not be recent", "sbjHead", sbjHead.Height(), "err", err)
log.Warnw("failed to return head from trusted peer, returning subjective head which may not be recent", "sbjHead", sbjHead.Height(), "err", err)
return sbjHead, nil
}
// process and validate netHead fetched from trusted peers
Expand Down

0 comments on commit 690e8b5

Please sign in to comment.