Adjust warning level.

This commit is contained in:
josecoll 2019-02-14 16:21:24 +00:00 committed by Mike Hearn
parent 6314c1757a
commit 758c855493

View File

@ -7,6 +7,7 @@ import net.corda.core.crypto.SecureHash
import net.corda.core.crypto.isFulfilledBy import net.corda.core.crypto.isFulfilledBy
import net.corda.core.internal.AttachmentWithContext import net.corda.core.internal.AttachmentWithContext
import net.corda.core.internal.isUploaderTrusted import net.corda.core.internal.isUploaderTrusted
import net.corda.core.internal.warnOnce
import net.corda.core.serialization.CordaSerializable import net.corda.core.serialization.CordaSerializable
import net.corda.core.transactions.TransactionBuilder import net.corda.core.transactions.TransactionBuilder
import net.corda.core.utilities.loggerFor import net.corda.core.utilities.loggerFor
@ -53,7 +54,7 @@ data class HashAttachmentConstraint(val attachmentId: SecureHash) : AttachmentCo
override fun isSatisfiedBy(attachment: Attachment): Boolean { override fun isSatisfiedBy(attachment: Attachment): Boolean {
return when { return when {
disableHashConstraints -> { disableHashConstraints -> {
log.warn("Skipping hash constraints verification.") log.warnOnce("Skipping hash constraints verification.")
true true
} }
attachment is AttachmentWithContext -> { attachment is AttachmentWithContext -> {