Adding a debug message during name resolution

This commit is contained in:
Miroslav Stampar 2014-12-11 13:29:26 +01:00
parent 6f211f9d3e
commit 1e06e7c386

View File

@ -1265,6 +1265,8 @@ def checkNullConnection():
def checkConnection(suppressOutput=False):
if not any((conf.proxy, conf.tor, conf.dummy)):
try:
debugMsg = "resolving hostname '%s'" % conf.hostname
logger.debug(debugMsg)
socket.getaddrinfo(conf.hostname, None)
except socket.gaierror:
errMsg = "host '%s' does not exist" % conf.hostname