This repository was archived by the owner on Sep 12, 2024. It is now read-only.
File tree 1 file changed +7
-1
lines changed
helios-client/src/main/java/com/spotify/helios/common
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 31
31
import java .net .URI ;
32
32
import java .net .URISyntaxException ;
33
33
import java .util .List ;
34
+ import org .slf4j .Logger ;
35
+ import org .slf4j .LoggerFactory ;
34
36
35
37
/**
36
38
* A utility class that resolves DNS SRV records. Used by {@link PeriodicResolver} to discover
37
39
* helios masters.
38
40
*/
39
41
class Resolver {
40
42
43
+ private static final Logger log = LoggerFactory .getLogger (Resolver .class );
44
+
41
45
private static final String HTTPS_SRV_FORMAT = env ("HELIOS_HTTPS_SRV_FORMAT" , "_%s._https.%s" );
42
46
private static final String HTTP_SRV_FORMAT = env ("HELIOS_HTTP_SRV_FORMAT" , "_%s._http.%s" );
43
47
@@ -83,7 +87,9 @@ private static List<URI> resolve(final String srvName,
83
87
endpoints .add (protocol (protocol , result .host (), result .port ()));
84
88
}
85
89
86
- return endpoints .build ();
90
+ final ImmutableList <URI > uris = endpoints .build ();
91
+ log .info ("Resolved {} to {}" , name , uris );
92
+ return uris ;
87
93
}
88
94
89
95
private static URI protocol (final String protocol , final String host , final int port ) {
You can’t perform that action at this time.
0 commit comments