whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/2] Commit 0fec64f: Fix bug: allow code to recover from a single faulty LDAP host
Date Fri, 22 Jan 2016 12:03:40 GMT
Commit 0fec64fa218cb184ae37d35e75b05d6b8f0273f1:
    Fix bug: allow code to recover from a single faulty LDAP host


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

------------------------------------------------------------
lib/whimsy/asf/ldap.rb                                       | ++++ ---
------------------------------------------------------------
7 changes: 4 additions, 3 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 475a109..4c696e7 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -61,12 +61,13 @@ def self.connect
 
           return ldap
         rescue ::LDAP::ResultError => re
-          Wunderbar.error "Error connecting to LDAP server #{host}: " +
-            re.message
+          Wunderbar.warn "Error connecting to LDAP server #{host}: " +
+            re.message + " (continuing)"
         end
 
-        return nil
       end
+      Wunderbar.error "Failed to connect to any LDAP host"
+      return nil
     end
   end
 

Mime
View raw message