Skip to content

Commit

Permalink
Merge pull request #88 from bdraco/more_than_one_address
Browse files Browse the repository at this point in the history
Downgrade logging about more than one address to debug
  • Loading branch information
andreikop authored Jan 24, 2025
2 parents f89e23a + 7af2a97 commit ba4c943
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 ba4c943

Please sign in to comment.