Skip to content

Commit 4e980a6

Browse files
committed
fix: remove duplicate error log in handleSubscription
The handler error was being logged in both handleSubscription and startSubscriber, doubling alert noise. Remove the log from handleSubscription and let startSubscriber be the single error log entry point.
1 parent 4ddb61b commit 4e980a6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/gofr/subscriber.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ func (s *SubscriptionManager) handleSubscription(ctx context.Context, topic stri
6767
return handler(ctx)
6868
}(msgCtx)
6969
if err != nil {
70-
s.container.Logger.Errorf("error in handler for topic %s: %v", topic, err)
71-
7270
return err
7371
}
7472

0 commit comments

Comments
 (0)