Move log statement to correct section

This commit is contained in:
Daniel Smith 2020-04-03 17:31:38 +00:00
parent 5092f52042
commit f6a2a7cee9
1 changed files with 6 additions and 6 deletions

View File

@ -2978,6 +2978,12 @@ void Transaction::setOption( FDBTransactionOptions::Option option, Optional<Stri
trLogInfo = Reference<TransactionLogInfo>(new TransactionLogInfo(value.get().printable(), TransactionLogInfo::DONT_LOG));
trLogInfo->maxFieldLength = options.maxTransactionLoggingFieldLength;
}
if (info.debugID.present()) {
TraceEvent(SevInfo, "TransactionBeingTraced")
.detail("DebugTransactionID", trLogInfo->identifier)
.detail("ServerTraceID", info.debugID.get().toString());
}
break;
case FDBTransactionOptions::LOG_TRANSACTION:
@ -2989,12 +2995,6 @@ void Transaction::setOption( FDBTransactionOptions::Option option, Optional<Stri
TraceEvent(SevWarn, "DebugTransactionIdentifierNotSet").detail("Error", "Debug Transaction Identifier option must be set before logging the transaction");
throw client_invalid_operation();
}
if (info.debugID.present()) {
TraceEvent(SevInfo, "TransactionBeingTraced")
.detail("DebugTransactionID", trLogInfo->identifier)
.detail("ServerTraceID", info.debugID.get().toString());
}
break;
case FDBTransactionOptions::TRANSACTION_LOGGING_MAX_FIELD_LENGTH: