mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +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) {
|
||||
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.ProtectedStorageEntry;
|
||||
import io.bitsquare.storage.Storage;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -263,7 +264,7 @@ public class P2PDataStorage implements MessageListener, ConnectionListener {
|
|||
|
||||
// printData("before refreshTTL");
|
||||
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.updateSequenceNumber(sequenceNumber);
|
||||
storedData.updateSignature(signature);
|
||||
|
|
Loading…
Add table
Reference in a new issue