Bläddra i källkod

Merge pull request #1207 from kubecost/mmd/fix-filter-format-string

Fix format strings in allocation filter
Michael Dresser 4 år sedan
förälder
incheckning
3364c7fb56
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      pkg/kubecost/allocationfilter.go

+ 2 - 2
pkg/kubecost/allocationfilter.go

@@ -137,7 +137,7 @@ func (filter AllocationFilterCondition) Matches(a *Allocation) bool {
 			valueToCompare = val
 		}
 	default:
-		log.Errorf("Allocation Filter: Unhandled filter field. This is a filter implementation error and requires immediate patching. Field: %d", filter.Field)
+		log.Errorf("Allocation Filter: Unhandled filter field. This is a filter implementation error and requires immediate patching. Field: %s", filter.Field)
 		return false
 	}
 
@@ -170,7 +170,7 @@ func (filter AllocationFilterCondition) Matches(a *Allocation) bool {
 			return true
 		}
 	default:
-		log.Errorf("Allocation Filter: Unhandled filter op. This is a filter implementation error and requires immediate patching. Op: %d", filter.Op)
+		log.Errorf("Allocation Filter: Unhandled filter op. This is a filter implementation error and requires immediate patching. Op: %s", filter.Op)
 		return false
 	}