From f6a2a7cee947211d242b8b139a424adda7e3f126 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 3 Apr 2020 17:31:38 +0000 Subject: [PATCH] Move log statement to correct section --- fdbclient/NativeAPI.actor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fdbclient/NativeAPI.actor.cpp b/fdbclient/NativeAPI.actor.cpp index 7d3dcbaaed..87ecdaf37a 100644 --- a/fdbclient/NativeAPI.actor.cpp +++ b/fdbclient/NativeAPI.actor.cpp @@ -2978,6 +2978,12 @@ void Transaction::setOption( FDBTransactionOptions::Option option, Optional(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, Optionalidentifier) - .detail("ServerTraceID", info.debugID.get().toString()); - - } break; case FDBTransactionOptions::TRANSACTION_LOGGING_MAX_FIELD_LENGTH: