From 07e0e1f95693fac201645e70cab0dfc2b227aa7f Mon Sep 17 00:00:00 2001 From: atef Date: Tue, 3 Oct 2023 16:00:54 +0200 Subject: [PATCH] Add time stamp on console --- csharp/App/SaliMax/src/Program.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 043bcacf1..e9a993bf3 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -174,18 +174,15 @@ internal static class Program // If control Special Error return true, we must stop the system.(break;) var alarmCondition = record.DetectAlarmStates(); - if (alarmCondition is not null) { - //stop the system - //return alarmCondition.LogInfo(); } record.ControlConstants(); record.ControlSystemState(); - $"{record.StateMachine.State}: {record.StateMachine.Message}".LogInfo(); + $"{DateTime.Now} : {record.StateMachine.State}: {record.StateMachine.Message}".WriteLine().LogInfo(); var essControl = record.ControlEss().WriteLine().LogInfo();