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