Skip to content

Commit

Permalink
fixup! SILKit-1607: Usage of InternalLogger and key values
Browse files Browse the repository at this point in the history
  • Loading branch information
VLukasBecker committed Oct 18, 2024
1 parent 9efa29d commit 8da71e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions SilKit/source/services/orchestration/SystemStateTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar

const auto oldParticipantState{participantStatus.state};
const auto newParticipantState{newParticipantStatus.state};

Log::LoggerMessage lm{_logger, Log::Level::Debug};
lm.SetMessage("Updating participant status");
lm.SetKeyValue("ParticipantName", participantName);
lm.SetKeyValue("OldParticipantState", fmt::format("{}", oldParticipantState));
lm.SetKeyValue("NewParticipantState", fmt::format("{}", newParticipantState));
lm.Dispatch();

{
Log::LoggerMessage lm{_logger, Log::Level::Debug};
lm.SetMessage("Updating participant status");
lm.SetKeyValue("ParticipantName", participantName);
lm.SetKeyValue("OldParticipantState", fmt::format("{}", oldParticipantState));
lm.SetKeyValue("NewParticipantState", fmt::format("{}", newParticipantState));
lm.Dispatch();
}
// Check if transition from the old to the new participant state is valid
if (!ValidateParticipantStateUpdate(oldParticipantState, newParticipantState))
{
Expand Down

0 comments on commit 8da71e2

Please sign in to comment.