mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Update toTruncatedString
This commit is contained in:
parent
b8df32eec6
commit
9a885d934c
2 changed files with 3 additions and 2 deletions
|
@ -472,6 +472,6 @@ public class Utilities {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toTruncatedString(Object message) {
|
public static String toTruncatedString(Object message) {
|
||||||
return toTruncatedString(message, 100);
|
return toTruncatedString(message, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ import io.bitsquare.p2p.storage.payload.StoragePayload;
|
||||||
import io.bitsquare.p2p.storage.storageentry.ProtectedMailboxStorageEntry;
|
import io.bitsquare.p2p.storage.storageentry.ProtectedMailboxStorageEntry;
|
||||||
import io.bitsquare.p2p.storage.storageentry.ProtectedStorageEntry;
|
import io.bitsquare.p2p.storage.storageentry.ProtectedStorageEntry;
|
||||||
import io.bitsquare.storage.Storage;
|
import io.bitsquare.storage.Storage;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -263,7 +264,7 @@ public class P2PDataStorage implements MessageListener, ConnectionListener {
|
||||||
|
|
||||||
// printData("before refreshTTL");
|
// printData("before refreshTTL");
|
||||||
if (allValid) {
|
if (allValid) {
|
||||||
log.debug("refreshDate called for storedData:\n\t" + Utilities.toTruncatedString(storedData));
|
log.debug("refreshDate called for storedData:\n\t" + StringUtils.abbreviate(storedData.toString(), 100));
|
||||||
storedData.refreshTTL();
|
storedData.refreshTTL();
|
||||||
storedData.updateSequenceNumber(sequenceNumber);
|
storedData.updateSequenceNumber(sequenceNumber);
|
||||||
storedData.updateSignature(signature);
|
storedData.updateSignature(signature);
|
||||||
|
|
Loading…
Add table
Reference in a new issue