Remove flushing log from consumer

This commit is contained in:
2025-05-21 16:54:49 +04:00
parent 58dce559d3
commit 4d5abe66a6
2 changed files with 75 additions and 1 deletions

View File

@@ -264,7 +264,7 @@ func ConsumeAndSaveToMongoDB(
case <-ticker.C:
if len(postBatch) > 0 {
consumerLastFlushingTime = time.Now()
logger.Log.Info("flushing post batch", "count", len(postBatch))
// logger.Log.Info("flushing post batch", "count", len(postBatch))
err := postCollection.Insert(ctx, true, postBatch...)
if err != nil {
return fmt.Errorf("mongodb post insert error: %v", err)