From 873b557ce835fdce8cb2fa52e0a973cab87aebcc Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Mon, 11 Jan 2021 13:38:03 -0500 Subject: [PATCH] Add logs --- .../p2p/storage/persistence/RemovedPayloadsService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2p/src/main/java/bisq/network/p2p/storage/persistence/RemovedPayloadsService.java b/p2p/src/main/java/bisq/network/p2p/storage/persistence/RemovedPayloadsService.java index 164bde1828..8e22cc571a 100644 --- a/p2p/src/main/java/bisq/network/p2p/storage/persistence/RemovedPayloadsService.java +++ b/p2p/src/main/java/bisq/network/p2p/storage/persistence/RemovedPayloadsService.java @@ -53,6 +53,7 @@ public class RemovedPayloadsService implements PersistedDataHost { persisted.getDateByHashes().entrySet().stream() .filter(e -> e.getValue() < cutOffDate) .forEach(e -> removedPayloadsMap.getDateByHashes().put(e.getKey(), e.getValue())); + log.trace("readPersisted: removedPayloadsMap={}", removedPayloadsMap); persistenceManager.requestPersistence(); completeHandler.run(); }, @@ -60,10 +61,12 @@ public class RemovedPayloadsService implements PersistedDataHost { } public boolean wasRemoved(P2PDataStorage.ByteArray hashOfPayload) { + log.trace("called wasRemoved: hashOfPayload={}, removedPayloadsMap={}", hashOfPayload.toString(), removedPayloadsMap); return removedPayloadsMap.getDateByHashes().containsKey(hashOfPayload); } public void addHash(P2PDataStorage.ByteArray hashOfPayload) { + log.trace("called addHash: hashOfPayload={}, removedPayloadsMap={}", hashOfPayload.toString(), removedPayloadsMap); removedPayloadsMap.getDateByHashes().put(hashOfPayload, System.currentTimeMillis()); persistenceManager.requestPersistence(); }