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

1. Added more information while logging warnings

2. Removed unused code


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@101 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2fef3a89
......@@ -80,12 +80,6 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
super("Presence update handler");
}
private PresenceRouter router;
public void setRouter(PresenceRouter router) {
this.router = router;
}
public void process(XMPPPacket xmppPacket) throws UnauthorizedException, PacketException {
Presence presence = (Presence)xmppPacket;
Session session = presence.getOriginatingSession();
......@@ -255,7 +249,7 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
}
}
catch (UserNotFoundException e) {
Log.warn("Presence being sent from unknown user " + name);
Log.warn("Presence being sent from unknown user " + name, e);
}
catch (PacketException e) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
......@@ -349,7 +343,7 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
}
}
catch (UserNotFoundException e) {
Log.warn("Presence being sent from unknown user " + name);
Log.warn("Presence being sent from unknown user " + name, e);
}
catch (PacketException e) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), 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