mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Improve logs
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
c70cc4a5d6
commit
b3288e3839
@ -103,7 +103,7 @@ public interface ExcludeForHashAwareProto extends Proto {
|
||||
default <B extends Message.Builder> B clearAnnotatedFields(B builder) {
|
||||
Set<String> 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())) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user