You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/02/02 18:10:34 UTC

[whimsy.git] [1/2] Commit 996ff50: Show where hosts were found

Commit 996ff506de8fb1c4f69f49f556e7ca3e61d9bd08:
    Show where hosts were found


Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>

------------------------------------------------------------
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