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

Improved log of warning.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1186 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1d2017e2
...@@ -651,8 +651,11 @@ public class SessionManager extends BasicModule { ...@@ -651,8 +651,11 @@ public class SessionManager extends BasicModule {
// Return null if the JID's data belongs to a foreign server. If the server is // Return null if the JID's data belongs to a foreign server. If the server is
// shutting down then serverName will be null so answer null too in this case. // shutting down then serverName will be null so answer null too in this case.
if (serverName == null || !serverName.equals(domain)) { if (serverName == null || !serverName.equals(domain)) {
Log.warn("Session not found for packet. Packet domain: " + domain + " Server name: " + if (serverName == null || domain.indexOf(serverName) == -1) {
serverName); Log.warn("Session not found for packet. Packet domain: " + domain +
" Server name: " +
serverName);
}
return null; return null;
} }
......
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