Skip to content

Commit bdcbd75

Browse files
nyagamunenearvindh123
authored andcommitted
Changed from error to errorcontext in redis handle
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
1 parent 18d48c0 commit bdcbd75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/events/redis/subscriber.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ func (es *subEventStore) handle(ctx context.Context, stream string, msgs []redis
103103
}
104104

105105
if err := h.Handle(ctx, event); err != nil {
106-
es.logger.Warn(fmt.Sprintf("failed to handle redis event: %s", err))
106+
es.logger.ErrorContext(ctx, fmt.Sprintf("failed to handle redis event: %s", err))
107107

108108
return
109109
}
110110

111111
if err := es.client.XAck(ctx, stream, group, msg.ID).Err(); err != nil {
112-
es.logger.Warn(fmt.Sprintf("failed to ack redis event: %s", err))
112+
es.logger.ErrorContext(ctx, fmt.Sprintf("failed to ack redis event: %s", err))
113113

114114
return
115115
}

0 commit comments

Comments
 (0)