Commit 5ee189d1 authored by Dave Cridland's avatar Dave Cridland

Log stanzas discarded by routing

parent 3296124b
...@@ -548,11 +548,13 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust ...@@ -548,11 +548,13 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
if (packet.getType() == Message.Type.error) { if (packet.getType() == Message.Type.error) {
// Errors should be dropped at this point. // Errors should be dropped at this point.
Log.debug("Error stanza to bare JID discarded: {}", packet.toXML());
return true; // Not offline. return true; // Not offline.
} }
if (packet.getType() == Message.Type.groupchat) { if (packet.getType() == Message.Type.groupchat) {
// Surreal message type; cannot occur. // Surreal message type; cannot occur.
Log.debug("Groupchat stanza to bare JID discarded: {}", packet.toXML());
return false; // Maybe offline has an idea? return false; // Maybe offline has an idea?
} }
...@@ -581,8 +583,9 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust ...@@ -581,8 +583,9 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
return true; return true;
} }
if (JiveGlobals.getBooleanProperty("route.really-all-resources", false)) if (JiveGlobals.getBooleanProperty("route.really-all-resources", false)) {
return true; return true;
}
// Get the highest priority sessions for normal processing. // Get the highest priority sessions for normal processing.
List<ClientSession> highestPrioritySessions = getHighestPrioritySessions(nonNegativePrioritySessions); List<ClientSession> highestPrioritySessions = getHighestPrioritySessions(nonNegativePrioritySessions);
......
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