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 {
}
}
catch (Exception e) {
e.printStackTrace();
Log.error(e);
}
;
return found;
......
......@@ -130,7 +130,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
deliverer.deliver(response);
}
catch (Exception e) {
e.printStackTrace();
Log.error("Error handling authentication IQ packet", e);
}
return null;
}
......@@ -166,7 +166,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
}
}
catch (Exception e) {
e.printStackTrace(); //
Log.error("Error during login", e);
}
}
// If the connection was not refused due to conflict, log the user in
......
package org.jivesoftware.messenger.user.spi;
import org.jivesoftware.messenger.PrivateStore;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.LocaleUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
......@@ -42,6 +45,7 @@ final public class UserPrivateData {
}
}
catch (Exception ex) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), ex);
}
}
......@@ -93,7 +97,7 @@ final public class UserPrivateData {
privateStore.add(this.ID, element);
}
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