Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
Signed-off-by: David Wertenteil <[email protected]>
  • Loading branch information
David Wertenteil committed Jan 11, 2024
1 parent b37b4e2 commit 0189eaf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/dnsmanager/dns_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (

"github.com/goradd/maps"
tracerdnstype "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/trace/dns/types"
"github.com/kubescape/go-logger"
"github.com/kubescape/go-logger/helpers"
)

// DNSManager is used to manage DNS events and save IP resolutions. It exposes an API to resolve IP address to domain name.
Expand All @@ -28,7 +26,6 @@ func (dm *DNSManager) ProcessDNSEvent(dnsEvent tracerdnstype.Event) {
dm.addressToDomainMap.Set(address, dnsEvent.DNSName)
}
} else {
logger.L().Debug("DNS event has no addresses, using net.LookupIP instead", helpers.String("dnsName", dnsEvent.DNSName))
addresses, err := net.LookupIP(dnsEvent.DNSName)
if err != nil {
return
Expand Down

0 comments on commit 0189eaf

Please sign in to comment.