più log in resolverdns

This commit is contained in:
marco
2019-12-25 23:07:43 +01:00
parent e84ae3b7d3
commit a1db66cc36

View File

@@ -124,8 +124,9 @@ class session(requests.Session):
url = protocol + ip + (':' + port if port else '') + resource
try:
ret = super(session, self).request(method, url, headers=headers, **kwargs)
except:
except Exception as e:
logger.info('Request for ' + domain + ' with ip ' + ip + ' failed')
logger.info(e)
tryFlush = True
if (tryFlush or not ret) and not flushedDns: # re-request ips and update cache
logger.info('Flushing dns cache for ' + domain)