Skip to content

Commit

Permalink
Downgrade logging about more than one address to debug
Browse files Browse the repository at this point in the history
This is common on IPv6 interfaces
  • Loading branch information
bdraco committed Jan 23, 2025
1 parent ef63be8 commit 7af2a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsdiscovery/threaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def addSourceAddr(self, addr):
try:
self._multiInSocket.setsockopt(self._get_ip_proto(), self._get_ip_join(), self._makeMreq(addr))
except socket.error as e:
logger.warning(f"Interface has more than 1 address: {e}")
logger.debug(f"Interface has more than 1 address: {e}")

sock = self._createMulticastOutSocket(addr, self._observer.ttl)
self._multiOutUniInSockets[addr] = sock
Expand All @@ -152,7 +152,7 @@ def removeSourceAddr(self, addr):
try:
self._multiInSocket.setsockopt(self._get_ip_proto(), self._get_ip_leave(), self._makeMreq(addr))
except socket.error as e:
logger.warning(f"Interface has more than 1 address: {e}")
logger.debug(f"Interface has more than 1 address: {e}")

sock = self._multiOutUniInSockets[addr]
self._selector.unregister(sock)
Expand Down

0 comments on commit 7af2a97

Please sign in to comment.