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 98e5160 commit 9efa29d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions SilKit/source/services/orchestration/SystemStateTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,9 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
lm.SetKeyValue("ParticipantName", participantName);
lm.SetKeyValue("OldParticipantState", fmt::format("{}", oldParticipantState));
lm.SetKeyValue("NewParticipantState", fmt::format("{}", newParticipantState));
// lm.SetKeyValue("MYInt", 1122334455); todo intager values
lm.Dispatch();

//Log::Debug(_logger, "Updating participant status for {} from {} to {}", participantName, oldParticipantState,
// newParticipantState);

// Check if transition from the old to the new participant state is valid

if (!ValidateParticipantStateUpdate(oldParticipantState, newParticipantState))
{
const auto logLevel = IsRequiredParticipant(participantName) ? Log::Level::Warn : Log::Level::Debug;
Expand Down Expand Up @@ -204,7 +199,6 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
lm.SetKeyValue("OldSystemState", fmt::format("{}", oldSystemState));
lm.SetKeyValue("NewSystemState", fmt::format("{}", newSystemState));
lm.Dispatch();
//Log::Debug(_logger, "Computed new system state update from {} to {}", oldSystemState, newSystemState);

if (oldSystemState != newSystemState)
{
Expand All @@ -215,8 +209,6 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
lm.SetKeyValue("NewSystemState", fmt::format("{}", newSystemState));
lm.Dispatch();

//Log::Debug(_logger, "The system state has changed from {} to {}", oldSystemState, newSystemState);

_systemState = newSystemState;
result.systemStateChanged = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


#include "silkit/services/orchestration/OrchestrationDatatypes.hpp"
//#include "silkit/services/logging/ILoggerInternal.hpp"
#include "ILoggerInternal.hpp"

#include "silkit/util/Span.hpp"
Expand Down

0 comments on commit 9efa29d

Please sign in to comment.