This repository was archived by the owner on Sep 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
helios-client/src/main/java/com/spotify/helios/common Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3131import java .net .URI ;
3232import java .net .URISyntaxException ;
3333import java .util .List ;
34+ import org .slf4j .Logger ;
35+ import org .slf4j .LoggerFactory ;
3436
3537/**
3638 * A utility class that resolves DNS SRV records. Used by {@link PeriodicResolver} to discover
3739 * helios masters.
3840 */
3941class Resolver {
4042
43+ private static final Logger log = LoggerFactory .getLogger (Resolver .class );
44+
4145 private static final String HTTPS_SRV_FORMAT = env ("HELIOS_HTTPS_SRV_FORMAT" , "_%s._https.%s" );
4246 private static final String HTTP_SRV_FORMAT = env ("HELIOS_HTTP_SRV_FORMAT" , "_%s._http.%s" );
4347
@@ -83,7 +87,9 @@ private static List<URI> resolve(final String srvName,
8387 endpoints .add (protocol (protocol , result .host (), result .port ()));
8488 }
8589
86- return endpoints .build ();
90+ final ImmutableList <URI > uris = endpoints .build ();
91+ log .info ("Resolved {} to {}" , name , uris );
92+ return uris ;
8793 }
8894
8995 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