Skip to content

Commit

Permalink
Change log level to error for merge failures (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie authored Feb 8, 2024
1 parent a8710b3 commit 8e5ef89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processes/consumer/flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Flush(ctx context.Context, inMemDB *models.DatabaseData, dest destination.B

if err != nil {
tags["what"] = "merge_fail"
slog.With(logFields...).Warn(fmt.Sprintf("Failed to execute %s...not going to flush memory", action), slog.Any("err", err))
slog.With(logFields...).Error(fmt.Sprintf("Failed to execute %s...not going to flush memory", action), slog.Any("err", err))
} else {
slog.Info(fmt.Sprintf("%s success, clearing memory...", stringutil.CapitalizeFirstLetter(action)), logFields...)
commitErr := commitOffset(ctx, _tableData.TopicConfig.Topic, _tableData.PartitionsToLastMessage)
Expand Down

0 comments on commit 8e5ef89

Please sign in to comment.