From 55bce539538826831945ad2586ad3efcd534b89d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 Mar 2026 12:14:25 -0700 Subject: [PATCH] reduce logs --- weed/admin/maintenance/maintenance_manager.go | 2 +- weed/worker/tasks/erasure_coding/detection.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/admin/maintenance/maintenance_manager.go b/weed/admin/maintenance/maintenance_manager.go index 1ca8346f6..c7f151dbf 100644 --- a/weed/admin/maintenance/maintenance_manager.go +++ b/weed/admin/maintenance/maintenance_manager.go @@ -297,7 +297,7 @@ func (mm *MaintenanceManager) logTopologyStatus() { errorCount := mm.errorCount mm.mutex.RUnlock() - glog.V(0).Infof("Topology status: %d nodes, %d disks, %d workers, %d pending tasks, %d running tasks, errors: %d", + glog.V(1).Infof("Topology status: %d nodes, %d disks, %d workers, %d pending tasks, %d running tasks, errors: %d", nodeCount, diskCount, workerCount, stats.TasksByStatus[TaskStatusPending], stats.TasksByStatus[TaskStatusInProgress]+stats.TasksByStatus[TaskStatusAssigned], diff --git a/weed/worker/tasks/erasure_coding/detection.go b/weed/worker/tasks/erasure_coding/detection.go index 34bdd257e..cc920888b 100644 --- a/weed/worker/tasks/erasure_coding/detection.go +++ b/weed/worker/tasks/erasure_coding/detection.go @@ -316,7 +316,7 @@ func Detection(ctx context.Context, metrics []*types.VolumeHealthMetrics, cluste // Log debug summary if no tasks were created if len(results) == 0 && len(metrics) > 0 && !stoppedEarly { totalVolumes := len(metrics) - glog.Infof("EC detection: No tasks created for %d volumes (skipped: %d already EC, %d too small, %d filtered, %d not quiet, %d not full)", + glog.V(1).Infof("EC detection: No tasks created for %d volumes (skipped: %d already EC, %d too small, %d filtered, %d not quiet, %d not full)", totalVolumes, skippedAlreadyEC, skippedTooSmall, skippedCollectionFilter, skippedQuietTime, skippedFullness) // Show details for first few volumes @@ -325,7 +325,7 @@ func Detection(ctx context.Context, metrics []*types.VolumeHealthMetrics, cluste continue } sizeMB := float64(metric.Size) / (1024 * 1024) - glog.Infof("ERASURE CODING: Volume %d: size=%.1fMB (need ≥%dMB), age=%s (need ≥%s), fullness=%.1f%% (need ≥%.1f%%)", + glog.V(1).Infof("ERASURE CODING: Volume %d: size=%.1fMB (need ≥%dMB), age=%s (need ≥%s), fullness=%.1f%% (need ≥%.1f%%)", metric.VolumeID, sizeMB, ecConfig.MinSizeMB, metric.Age.Truncate(time.Minute), quietThreshold.Truncate(time.Minute), metric.FullnessRatio*100, ecConfig.FullnessRatio*100) }