Skip to content

Commit

Permalink
Move log
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 29, 2024
1 parent c2651fc commit d16c4c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func (w *Writer) Write(ctx context.Context, iter RawMessageIterator) (int, error
return 0, fmt.Errorf("failed to write messages: %w", err)
}
count += len(msgs)
slog.Info("Write progress",
slog.Duration("timing", time.Since(start)),
slog.Int("batchSize", len(msgs)),
slog.Int("total", count),
)
}
slog.Info("Write progress",
slog.Duration("timing", time.Since(start)),
slog.Int("batchSize", len(msgs)),
slog.Int("total", count),
)
}
return count, nil
}

0 comments on commit d16c4c7

Please sign in to comment.