Add a warning log if dnspython is not found for SRV lookup.
Closes issue #183
This commit is contained in:
parent
e8a3e92ceb
commit
51fee28bf4
@ -254,6 +254,7 @@ def get_SRV(host, port, service, proto='tcp', resolver=None):
|
|||||||
by SRV priorities and weights.
|
by SRV priorities and weights.
|
||||||
"""
|
"""
|
||||||
if resolver is None:
|
if resolver is None:
|
||||||
|
log.warning("DNS: dnspython not found. Can not use SRV lookup.")
|
||||||
return [(host, port)]
|
return [(host, port)]
|
||||||
|
|
||||||
log.debug("DNS: Querying SRV records for %s" % host)
|
log.debug("DNS: Querying SRV records for %s" % host)
|
||||||
|
Loading…
Reference in New Issue
Block a user