Log tweaks and minor cleanups, -15

This commit is contained in:
zzz
2013-10-29 21:03:20 +00:00
parent 0506a5915b
commit d2ee5b96ad
6 changed files with 24 additions and 10 deletions

View File

@ -518,14 +518,15 @@ public class TransientSessionKeyManager extends SessionKeyManager {
public void tagsReceived(SessionKey key, Set<SessionTag> sessionTags, long expire) {
TagSet tagSet = new TagSet(sessionTags, key, _context.clock().now() + expire,
_rcvTagSetID.incrementAndGet());
if (_log.shouldLog(Log.INFO))
if (_log.shouldLog(Log.INFO)) {
_log.info("Received " + tagSet);
if (_log.shouldLog(Log.DEBUG))
_log.debug("Tags: " + DataHelper.toString(sessionTags));
}
TagSet old = null;
SessionTag dupTag = null;
synchronized (_inboundTagSets) {
for (SessionTag tag : sessionTags) {
//if (_log.shouldLog(Log.DEBUG))
// _log.debug("Receiving tag " + tag + " in tagSet: " + tagSet);
old = _inboundTagSets.put(tag, tagSet);
if (old != null) {
if (!old.getAssociatedKey().equals(tagSet.getAssociatedKey())) {