Skip to content

Commit 87fbdea

Browse files
chore: removed logs
1 parent dafe23a commit 87fbdea

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

internal/controllers/helpers.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package restResources
22

33
import (
44
"fmt"
5-
"log"
65

76
"github.com/krateoplatformops/rest-dynamic-controller/internal/tools/comparison"
87
"github.com/krateoplatformops/rest-dynamic-controller/internal/tools/deepcopy"
@@ -14,7 +13,7 @@ import (
1413

1514
// isCRUpdated checks if the CR was updated by comparing the fields in the CR with the response from the API call, if existing cr fields are different from the response, it returns false
1615
func isCRUpdated(mg *unstructured.Unstructured, rm map[string]interface{}) (comparison.ComparisonResult, error) {
17-
log.Print("isCRUpdated - starting comparison between mg spec and rm")
16+
//log.Print("isCRUpdated - starting comparison between mg spec and rm")
1817
if mg == nil {
1918
return comparison.ComparisonResult{
2019
IsEqual: false,
@@ -28,12 +27,12 @@ func isCRUpdated(mg *unstructured.Unstructured, rm map[string]interface{}) (comp
2827
m, err := unstructuredtools.GetFieldsFromUnstructured(mg, "spec")
2928

3029
// Debug prints
31-
log.Print("isCRUpdated - comparing mg spec with rm")
30+
//log.Print("isCRUpdated - comparing mg spec with rm")
3231
// print the mg spec for debugging
33-
log.Print("mg spec fields:")
34-
for k, v := range m {
35-
log.Printf("mg spec field: %s = %v", k, v)
36-
}
32+
//log.Print("mg spec fields:")
33+
//for k, v := range m {
34+
// log.Printf("mg spec field: %s = %v", k, v)
35+
//}
3736

3837
if err != nil {
3938
return comparison.ComparisonResult{
@@ -45,10 +44,10 @@ func isCRUpdated(mg *unstructured.Unstructured, rm map[string]interface{}) (comp
4544
}
4645

4746
// Debug prints
48-
log.Print("rm fields:")
49-
for k, v := range rm {
50-
log.Printf("rm field: %s = %v", k, v)
51-
}
47+
//log.Print("rm fields:")
48+
//for k, v := range rm {
49+
// log.Printf("rm field: %s = %v", k, v)
50+
//}
5251

5352
return comparison.CompareExisting(m, rm)
5453
}

0 commit comments

Comments
 (0)