Skip to content

Commit

Permalink
fix: log error
Browse files Browse the repository at this point in the history
  • Loading branch information
qazwsxedckll committed Dec 31, 2023
1 parent e5e9893 commit 4c65054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster/pubsub_delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func (p *PubSubMemberDeliveryActor) Receive(c actor.Context) {
identityLog := func(err error) {
if p.shouldThrottle() == actor.Open {
if fWithIdentity.identity.GetPid() != nil {
c.Logger().Info("Pub-sub message delivered to PID", slog.String("pid", fWithIdentity.identity.GetPid().String()))
c.Logger().Error("Pub-sub message failed to deliver to PID", slog.String("pid", fWithIdentity.identity.GetPid().String()), slog.Any("error", err))
} else if fWithIdentity.identity.GetClusterIdentity() != nil {
c.Logger().Info("Pub-sub message delivered to cluster identity", slog.String("cluster identity", fWithIdentity.identity.GetClusterIdentity().String()))
c.Logger().Error("Pub-sub message failed to deliver to cluster identity", slog.String("cluster identity", fWithIdentity.identity.GetClusterIdentity().String()), slog.Any("error", err))
}
}
}
Expand Down

0 comments on commit 4c65054

Please sign in to comment.