From d6425973e2f1d4d0a2053b804e5ed370084e9188 Mon Sep 17 00:00:00 2001 From: jrandom Date: Tue, 13 Jul 2004 20:16:05 +0000 Subject: [PATCH] include an objectId flag for use in the logging --- core/java/src/net/i2p/client/MessageState.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/client/MessageState.java b/core/java/src/net/i2p/client/MessageState.java index 1fe92609e..9f1194b54 100644 --- a/core/java/src/net/i2p/client/MessageState.java +++ b/core/java/src/net/i2p/client/MessageState.java @@ -31,9 +31,13 @@ class MessageState { private long _created; private Object _lock = new Object(); + private static long __stateId = 0; + private long _stateId; + public MessageState(long nonce, String prefix) { + _stateId = ++__stateId; _nonce = nonce; - _prefix = prefix; + _prefix = prefix + "[" + _stateId + "]: "; _id = null; _receivedStatus = new HashSet(); _cancelled = false;