Commit d323df3c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Replaces #printStackTrace with Log.error


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@64 b35dd754-fafc-0310-a699-88a17e54d16e
parent 068e7c3a
...@@ -396,7 +396,7 @@ public class BasicModule implements Module { ...@@ -396,7 +396,7 @@ public class BasicModule implements Module {
} }
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace(); Log.error(e);
} }
; ;
return found; return found;
......
...@@ -130,7 +130,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo { ...@@ -130,7 +130,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
deliverer.deliver(response); deliverer.deliver(response);
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace(); Log.error("Error handling authentication IQ packet", e);
} }
return null; return null;
} }
...@@ -166,7 +166,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo { ...@@ -166,7 +166,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
} }
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace(); // Log.error("Error during login", e);
} }
} }
// If the connection was not refused due to conflict, log the user in // If the connection was not refused due to conflict, log the user in
......
package org.jivesoftware.messenger.user.spi; package org.jivesoftware.messenger.user.spi;
import org.jivesoftware.messenger.PrivateStore; import org.jivesoftware.messenger.PrivateStore;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.LocaleUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
...@@ -42,6 +45,7 @@ final public class UserPrivateData { ...@@ -42,6 +45,7 @@ final public class UserPrivateData {
} }
} }
catch (Exception ex) { catch (Exception ex) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), ex);
} }
} }
...@@ -93,7 +97,7 @@ final public class UserPrivateData { ...@@ -93,7 +97,7 @@ final public class UserPrivateData {
privateStore.add(this.ID, element); privateStore.add(this.ID, element);
} }
catch (Exception ex) { catch (Exception ex) {
ex.printStackTrace(); Log.error(LocaleUtils.getLocalizedString("admin.error"), ex);
} }
} }
} }
\ No newline at end of file
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