diff --git a/common/src/main/java/bisq/common/ExcludeForHashAwareProto.java b/common/src/main/java/bisq/common/ExcludeForHashAwareProto.java index 18977fb3b9..284e223c5c 100644 --- a/common/src/main/java/bisq/common/ExcludeForHashAwareProto.java +++ b/common/src/main/java/bisq/common/ExcludeForHashAwareProto.java @@ -103,7 +103,7 @@ public interface ExcludeForHashAwareProto extends Proto { default B clearAnnotatedFields(B builder) { Set excludedFields = getExcludedFields(); if (!excludedFields.isEmpty()) { - getLogger().error("Clear fields in builder annotated with @ExcludeForHash: {}", excludedFields); + getLogger().debug("Clear fields in builder annotated with @ExcludeForHash: {}", excludedFields); } for (Descriptors.FieldDescriptor fieldDesc : builder.getAllFields().keySet()) { if (excludedFields.contains(fieldDesc.getName())) { diff --git a/p2p/src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java b/p2p/src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java index 9f4f61c285..1f1c4e1f69 100644 --- a/p2p/src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java +++ b/p2p/src/main/java/bisq/network/p2p/storage/payload/ProtectedStorageEntry.java @@ -32,6 +32,8 @@ import com.google.protobuf.Message; import com.google.common.base.Preconditions; +import org.bouncycastle.util.encoders.Hex; + import java.security.PublicKey; import java.time.Clock; @@ -215,7 +217,9 @@ public class ProtectedStorageEntry implements NetworkPayload, PersistablePayload boolean result = Sig.verify(this.ownerPubKey, hashOfDataAndSeqNr, this.signature); if (!result) - log.warn("ProtectedStorageEntry::isSignatureValid() failed.\n{}}", this); + log.warn("Invalid signature for {}.\nSerialized data as hex={}}", + protectedStoragePayload.getClass().getSimpleName(), + Hex.toHexString(protectedStoragePayload.toProtoMessage().toByteArray())); return result; } catch (CryptoException e) {