From 9526926cd33cf272864786c1373256490941901b Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 24 Jan 2017 20:13:26 +0100 Subject: [PATCH] Log message about missing SRV RRs --- .../src/main/java/org/jivesoftware/smack/util/DNSUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java b/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java index ebe709a06..2d00562b6 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java @@ -194,6 +194,8 @@ public class DNSUtil { } List sortedRecords = sortSRVRecords(srvRecords); addresses.addAll(sortedRecords); + } else { + LOGGER.info("Could not resolve DNS SRV resource records for " + srvDomain + ". Consider adding those."); } int defaultPort = -1;