Make verbose log debug level

This commit is contained in:
sqrrm 2020-04-30 11:02:01 +02:00 committed by Christoph Atteneder
parent abb4d7598d
commit 4d8d1e0431
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -579,7 +579,9 @@ public class P2PDataStorage implements MessageListener, ConnectionListener, Pers
// To avoid that expired data get stored and broadcast we check early for expire date.
if (protectedStorageEntry.isExpired(clock)) {
log.warn("We received an expired protectedStorageEntry from peer {}. getCreationTimeStamp={}, protectedStorageEntry={}",
log.warn("We received an expired protectedStorageEntry from peer {}",
sender != null ? sender.getFullAddress() : "sender is null");
log.debug("Expired protectedStorageEntry from peer {}. getCreationTimeStamp={}, protectedStorageEntry={}",
sender != null ? sender.getFullAddress() : "sender is null",
new Date(protectedStorageEntry.getCreationTimeStamp()),
protectedStorageEntry);