removed some logging; fixed some existing unit tests

This commit is contained in:
David Kennedy 2023-10-23 22:10:03 -04:00
parent 0e95ff6478
commit 293eb40cff
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 3 additions and 5 deletions

View file

@ -324,7 +324,6 @@ class Domain(TimeStampedModel, DomainHelper):
)
elif ip is not None and ip != [] and ip != ['']:
for addr in ip:
logger.info(f"ip address {addr}")
if not cls._valid_ip_addr(addr):
raise NameserverError(
code=nsErrorCodes.INVALID_IP, nameserver=nameserver, ip=ip
@ -339,7 +338,6 @@ class Domain(TimeStampedModel, DomainHelper):
isValid (boolean)-True for valid ip address"""
try:
ip = ipaddress.ip_address(ipToTest)
logger.info(ip.version)
return ip.version == 6 or ip.version == 4
except ValueError: