Commit 238cda91 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added missing printing of exceptions.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10428 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8cc789b8
......@@ -320,6 +320,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
return true;
} catch (Exception e) {
// Nothing to do.
Log.warn("Failed authenticating user with Clearspace. User = " + username , e);
}
return false;
......@@ -340,6 +341,7 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
return true;
} catch (Exception e) {
// It is not ok, return false.
Log.warn("Failed testing communicating with Clearspace" , e);
}
return false;
......@@ -1118,7 +1120,9 @@ public class ClearspaceManager extends BasicModule implements ExternalComponentM
Element element = executeRequest(GET, path);
return WSUtils.getReturn(element);
} catch (Exception e) {}
} catch (Exception e) {
Log.error("Failed executing #generateNonce with Clearspace" , e);
}
return null;
}
......
......@@ -19,6 +19,7 @@ import static org.jivesoftware.openfire.clearspace.ClearspaceManager.HttpType.*;
import static org.jivesoftware.openfire.clearspace.WSUtils.getReturn;
import static org.jivesoftware.openfire.clearspace.WSUtils.parseStringArray;
import org.jivesoftware.openfire.user.*;
import org.jivesoftware.util.Log;
import org.xmpp.packet.JID;
import java.util.*;
......@@ -490,6 +491,7 @@ public class ClearspaceUserProvider implements UserProvider {
readOnly = Boolean.valueOf(getReturn(element));
} catch (Exception e) {
// if there is a problem, keep it null, maybe in the next call success.
Log.error("Failed checking #isReadOnly with Clearspace" , e);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment