[mod] more debug logging

This commit is contained in:
Laurent Peuch 2017-01-08 05:36:39 +01:00
parent a9675b01f7
commit 4b9d2526db

View file

@ -838,7 +838,8 @@ def _dns_ip_match_public_ip(public_ip, domain):
def _domain_is_accessible_through_HTTP(ip, domain):
try:
requests.head("http://" + ip, headers={"Host": domain})
except Exception:
except Exception as e:
logger.debug("Couldn't reach domain '%s' by requesting this ip '%s' because: %s" % (domain, ip, e))
return False
return True