@@ -143,8 +143,8 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
143
143
Log::LoggerMessage lm{_logger, Log::Level::Debug};
144
144
lm.SetMessage (" Updating participant status" );
145
145
lm.SetKeyValue (Log::Keys::participantName, participantName);
146
- lm.SetKeyValue (Log::Keys::oldParticipantState, fmt::format ( " {}" , oldParticipantState) );
147
- lm.SetKeyValue (Log::Keys::newParticipantState, fmt::format ( " {}" , newParticipantState) );
146
+ lm.FormatKeyValue (Log::Keys::oldParticipantState, " {}" , oldParticipantState);
147
+ lm.FormatKeyValue (Log::Keys::newParticipantState, " {}" , newParticipantState);
148
148
lm.Dispatch ();
149
149
}
150
150
// Check if transition from the old to the new participant state is valid
@@ -155,8 +155,8 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
155
155
Log::LoggerMessage lm{_logger, logLevel};
156
156
lm.SetMessage (" SystemMonitor detected invalid ParticipantState transition!" );
157
157
lm.SetKeyValue (Log::Keys::participantName, participantName);
158
- lm.SetKeyValue (Log::Keys::oldParticipantState, fmt::format ( " {}" , oldParticipantState) );
159
- lm.SetKeyValue (Log::Keys::newParticipantState, fmt::format ( " {}" , newParticipantState) );
158
+ lm.FormatKeyValue (Log::Keys::oldParticipantState, " {}" , oldParticipantState);
159
+ lm.FormatKeyValue (Log::Keys::newParticipantState, " {}" , newParticipantState);
160
160
lm.SetKeyValue (Log::Keys::enterTime, FormatTimePoint (newParticipantStatus.enterTime ));
161
161
lm.SetKeyValue (Log::Keys::enterReason, newParticipantStatus.enterReason );
162
162
lm.Dispatch ();
@@ -195,8 +195,8 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
195
195
Log::LoggerMessage lm{_logger, Log::Level::Debug};
196
196
lm.SetMessage (" Computed new system state update!" );
197
197
lm.SetKeyValue (Log::Keys::participantName, participantName);
198
- lm.SetKeyValue (Log::Keys::oldParticipantState, fmt::format ( " {}" , oldSystemState) );
199
- lm.SetKeyValue (Log::Keys::newParticipantState, fmt::format ( " {}" , newSystemState) );
198
+ lm.FormatKeyValue (Log::Keys::oldParticipantState, " {}" , oldSystemState);
199
+ lm.FormatKeyValue (Log::Keys::newParticipantState, " {}" , newSystemState);
200
200
lm.Dispatch ();
201
201
}
202
202
@@ -205,8 +205,8 @@ auto SystemStateTracker::UpdateParticipantStatus(const ParticipantStatus& newPar
205
205
Log::LoggerMessage lm{_logger, Log::Level::Debug};
206
206
lm.SetMessage (" The system state has changed!" );
207
207
lm.SetKeyValue (Log::Keys::participantName, participantName);
208
- lm.SetKeyValue (Log::Keys::oldParticipantState, fmt::format ( " {}" , oldSystemState) );
209
- lm.SetKeyValue (Log::Keys::newParticipantState, fmt::format ( " {}" , newSystemState) );
208
+ lm.FormatKeyValue (Log::Keys::oldParticipantState, " {}" , oldSystemState);
209
+ lm.FormatKeyValue (Log::Keys::newParticipantState, " {}" , newSystemState);
210
210
lm.Dispatch ();
211
211
212
212
_systemState = newSystemState;
0 commit comments