From 7f3f4b65ae65a58703033ec63faa7ca73caaf4d7 Mon Sep 17 00:00:00 2001 From: Asim Date: Fri, 29 Apr 2016 23:55:12 +0100 Subject: [PATCH] Remove noise https://github.com/hashicorp/mdns/pull/34 --- server.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server.go b/server.go index 18f4d4d..541187d 100644 --- a/server.go +++ b/server.go @@ -4,7 +4,6 @@ import ( "fmt" "log" "net" - "strings" "sync" "github.com/miekg/dns" @@ -222,14 +221,6 @@ func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error { } } - if len(multicastAnswer) == 0 && len(unicastAnswer) == 0 { - questions := make([]string, len(query.Question)) - for i, q := range query.Question { - questions[i] = q.Name - } - log.Printf("no responses for query with questions: %s", strings.Join(questions, ", ")) - } - if mresp := resp(false); mresp != nil { if err := s.sendResponse(mresp, from, false); err != nil { return fmt.Errorf("mdns: error sending multicast response: %v", err)