Commit 996ff506de8fb1c4f69f49f556e7ca3e61d9bd08:
Show where hosts were found
Branch: refs/heads/master
Author: Sebb <[email protected]>
Committer: Sebb <[email protected]>
Pusher: sebb <[email protected]>
------------------------------------------------------------
lib/whimsy/asf/ldap.rb | ++++
------------------------------------------------------------
4 changes: 4 additions, 0 deletions.
------------------------------------------------------------
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index ad360be..ed0394c 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -534,10 +534,14 @@ def self.hosts
if File.exist? conf
uris = File.read(conf)[/^uri\s+(.*)/i, 1].to_s
hosts = uris.scan(/ldaps?:\/\/\S+?:\d+/)
+ Wunderbar.debug "Using hosts from LDAP config"
end
+ else
+ Wunderbar.debug "Using hosts from Whimsy config"
end
# if all else fails, use default list
+ Wunderbar.debug "Using default host list" if hosts.empty?
hosts = ASF::LDAP::HOSTS if hosts.empty?
hosts