Skip to content

Commit

Permalink
Proper error log
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Sep 27, 2024
1 parent 6425b59 commit 7477393
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions service/app/follow_change_puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ func (f *FollowChangePuller) Run(ctx context.Context) error {

tokens, err := f.queries.GetTokens.Handle(ctx, followChangeAggregate.Followee)
if err != nil || len(tokens) == 0 {
f.logger.Error().
WithField("followee", followChangeAggregate.Followee.Hex()).
WithError(err).
Message("error getting tokens for followee")
continue
}

if len(tokens) == 0 {
// Not one of our users, ignore
continue
}
Expand Down

0 comments on commit 7477393

Please sign in to comment.