Ver código fonte

remove debug logging

Anton Petruhin 4 anos atrás
pai
commit
c9654d5494
2 arquivos alterados com 0 adições e 4 exclusões
  1. 0 1
      containers/container.go
  2. 0 3
      containers/registry.go

+ 0 - 1
containers/container.go

@@ -230,7 +230,6 @@ func (c *Container) Collect(ch chan<- prometheus.Metric) {
 	}
 
 	listens := c.getListens(netNs)
-	klog.Infof("got listens for %s ns=%s: %v", c.cgroup.Id, netNs.UniqueId(), listens)
 	for addr, open := range listens {
 		ch <- gauge(metrics.NetListenInfo, float64(open), addr.String(), "")
 	}

+ 0 - 3
containers/registry.go

@@ -119,7 +119,6 @@ func (r *Registry) handleEvents(ch <-chan ebpftracer.Event) {
 			if !more {
 				return
 			}
-			klog.Infoln(e)
 			switch e.Type {
 			case ebpftracer.EventTypeProcessStart:
 				c, seen := r.containersByPid[e.Pid]
@@ -192,10 +191,8 @@ func (r *Registry) handleEvents(ch <-chan ebpftracer.Event) {
 
 func (r *Registry) getOrCreateContainer(pid uint32) *Container {
 	if c, seen := r.containersByPid[pid]; c != nil {
-		klog.Infof("got container by pid %d -> %s", pid, c.cgroup.Id)
 		return c
 	} else if seen { // ignored
-		klog.Infof("ignored container for pid %d", pid)
 		return nil
 	}
 	cg, err := proc.ReadCgroup(pid)