Skip to content

Commit

Permalink
ipmap: m debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Feb 2, 2024
1 parent 13069cf commit 0d1b830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intra/protect/ipmap/ipmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (m *ipmap) LookupNetIP(ctx context.Context, network, host string) ([]netip.
func (m *ipmap) Add(hostname string) *IPSet {
s := m.get(hostname)
if ok := s.add(hostname); !ok {
log.W("ipmap: Get: zero ips for %s", hostname)
log.W("ipmap: Add: zero ips for %s", hostname)
}
return s
}
Expand Down Expand Up @@ -180,7 +180,7 @@ func (s *IPSet) addLocked(ip netip.Addr) {
// always unmapped; github.com/golang/go/issues/53607
s.ips = append(s.ips, ip.Unmap())
} else {
log.W("ipmap: add: invalid ip %s; uns? %t, val? %t, new? %t", ip, uns, valip, newip)
log.D("ipmap: add: fail %s; uns? %t, val? %t, new? %t", ip, uns, valip, newip)
}
}

Expand Down

0 comments on commit 0d1b830

Please sign in to comment.