From 853181d31fef6c8942c7bd368c7be63cda69eaa4 Mon Sep 17 00:00:00 2001 From: "Becker, Lukas" Date: Fri, 18 Oct 2024 14:14:14 +0200 Subject: [PATCH] fixup! SILKit-1607: Usage of InternalLogger and key values --- .../services/orchestration/SystemStateTracker.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/SilKit/source/services/orchestration/SystemStateTracker.cpp b/SilKit/source/services/orchestration/SystemStateTracker.cpp index 48a12f54e..7e92befe5 100644 --- a/SilKit/source/services/orchestration/SystemStateTracker.cpp +++ b/SilKit/source/services/orchestration/SystemStateTracker.cpp @@ -180,13 +180,12 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar if (oldParticipantState != newParticipantState) { result.participantStateChanged = true; - - Log::LoggerMessage lm{_logger, Log::Level::Debug}; - lm.SetMessage("The participant state has changed!"); - lm.SetKeyValue("ParticipantName", participantName); - lm.Dispatch(); - - //Log::Debug(_logger, "The participant state has changed for {}", participantName); + { + Log::LoggerMessage lm{_logger, Log::Level::Debug}; + lm.SetMessage("The participant state has changed!"); + lm.SetKeyValue("ParticipantName", participantName); + lm.Dispatch(); + } if (IsRequiredParticipant(participantName)) {