chore: Clean up duplicate logs

This commit is contained in:
zhangzhifei16 2025-09-08 21:37:13 +08:00
parent 597a684bb0
commit 39170e2ed6

View file

@ -393,7 +393,6 @@ func (im *realImageGCManager) GarbageCollect(ctx context.Context, beganGC time.T
amountToFree := capacity*int64(100-im.policy.LowThresholdPercent)/100 - available
logger.Info("Disk usage on image filesystem is over the high threshold, trying to free bytes down to the low threshold", "usage", usagePercent, "highThreshold", im.policy.HighThresholdPercent, "amountToFree", amountToFree, "lowThreshold", im.policy.LowThresholdPercent)
remainingImages, freed, err := im.freeSpace(ctx, amountToFree, freeTime, images)
logger.Info("Disk usage on image filesystem is over the high threshold, trying to free bytes down to the low threshold", "usage", usagePercent, "highThreshold", im.policy.HighThresholdPercent, "amountToFree", amountToFree, "lowThreshold", im.policy.LowThresholdPercent)
if err != nil {
// Failed to delete images, eg due to a read-only filesystem.
return err