Move log statement to correct section
This commit is contained in:
parent
5092f52042
commit
f6a2a7cee9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue