Add debug logging for SRV lookups. Contributed by @Bubu.