Remove the extremely verbose log messages

This commit is contained in:
Armon Dadgar 2014-01-29 17:31:54 -08:00
parent 4d2ea38ee8
commit 17be83de46

View File

@ -121,7 +121,6 @@ func (s *Server) parsePacket(packet []byte, from net.Addr) error {
// handleQuery is used to handle an incoming query // handleQuery is used to handle an incoming query
func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error { func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error {
log.Printf("[DEBUG] mdns: query from %v", from)
var resp dns.Msg var resp dns.Msg
resp.SetReply(query) resp.SetReply(query)
@ -134,8 +133,6 @@ func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error {
} }
// Check if there is an answer // Check if there is an answer
log.Printf("[DEBUG] mdns: %d records for %v",
len(resp.Answer), from)
if len(resp.Answer) > 0 { if len(resp.Answer) > 0 {
return s.sendResponse(&resp, from) return s.sendResponse(&resp, from)
} }