Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aramase committed Jun 25, 2019
1 parent 20e4e14 commit 2e19b1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/mic/mic.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func (c *Client) Sync(exit <-chan struct{}) {
begin := time.Now()
workDone := false
glog.V(6).Infof("Received event: %v", event)
fmt.Printf("Received event: %v\n", event)
// List all pods in all namespaces
systemTime := time.Now()
listPods, err := c.PodClient.GetPods()
Expand Down Expand Up @@ -241,7 +240,6 @@ func (c *Client) Sync(exit <-chan struct{}) {
}

glog.V(5).Infof("del: %v, add: %v", deleteList, addList)
fmt.Printf("del: %v, add: %v\n", deleteList, addList)

nodeMap := make(map[string]trackUserAssignedMSIIds)

Expand Down Expand Up @@ -536,8 +534,6 @@ func (c *Client) handleNodeErrors(nodesWithError []string, addList, deleteList *
nodeIdentityList[n] = idList
}

fmt.Println("nodes with error ", nodesWithError)
fmt.Println("node identity list ", nodeIdentityList)
isNodeErrored := func(node string) bool {
for _, n := range nodesWithError {
if n == node {
Expand Down Expand Up @@ -609,7 +605,6 @@ func (c *Client) handleNodeErrors(nodesWithError []string, addList, deleteList *
}

if isUserAssignedMSI && !inUse {
fmt.Println("coming in here")
message := fmt.Sprintf("Binding %s removal from node %s for pod %s failed", removedBinding.Name, delID.Spec.NodeName, delID.Spec.Pod)
c.EventRecorder.Event(removedBinding, corev1.EventTypeWarning, "binding remove error", message)
glog.Error(message)
Expand Down

0 comments on commit 2e19b1d

Please sign in to comment.