Minor: fix trace logging in TimeBasedWriteSetSelector (#11117)

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Hubert Slojewski 2021-10-05 08:30:22 +02:00 committed by GitHub
parent 018e90854c
commit b9a5a83175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,10 @@ final class TimeBasedWriteSetSelector[ReadSet, WriteSet](now: () => Instant)
!recordTime.isBefore(minRecordTime) &&
!recordTime.isAfter(maxRecordTime)
if (withinTimeBounds) {
val rejectionReason =
Rejection.RecordTimeOutOfRange(minRecordTime, maxRecordTime)
logger.trace(s"Transaction rejected at post-execution, ${rejectionReason.description}")
preExecutionOutput.successWriteSet
} else {
val rejectionReason = Rejection.RecordTimeOutOfRange(minRecordTime, maxRecordTime)
logger.trace(s"Transaction rejected at post-execution, ${rejectionReason.description}")
preExecutionOutput.outOfTimeBoundsWriteSet
}
}