Add edu.type as part of key. Remove debug logging

This commit is contained in:
Erik Johnston 2016-09-09 17:13:30 +01:00
parent 52b2318777
commit 327425764e

View file

@ -154,7 +154,9 @@ class TransactionQueue(object):
return
if key:
self.pending_edus_keyed_by_dest.setdefault(destination, {})[key] = edu
self.pending_edus_keyed_by_dest.setdefault(
destination, {}
)[(edu.type, key)] = edu
else:
self.pending_edus_by_dest.setdefault(destination, []).append(edu)
@ -228,7 +230,6 @@ class TransactionQueue(object):
)
pending_edus.extend(device_message_edus)
logger.info("Sending presence: %r", pending_presence)
if pending_presence:
pending_edus.append(
Edu(