Skip to content

Commit 451c072

Browse files
committed
Add some debug logging
1 parent df88670 commit 451c072

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zeroconf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,9 @@ def handle_read(self, socket_):
878878
return
879879
else:
880880
raise e
881+
else:
882+
log.debug('Received %r from %r:%r', data, addr, port)
883+
881884
self.data = data
882885
msg = DNSIncoming(data)
883886
if msg.is_query():
@@ -1577,6 +1580,7 @@ def handle_query(self, msg, addr, port):
15771580
def send(self, out, addr=_MDNS_ADDR, port=_MDNS_PORT):
15781581
"""Sends an outgoing packet."""
15791582
packet = out.packet()
1583+
log.debug('Sending %r as %r...', out, packet)
15801584
for s in self._respond_sockets:
15811585
bytes_sent = s.sendto(packet, 0, (addr, port))
15821586
if bytes_sent != len(packet):

0 commit comments

Comments
 (0)