Add time stamp on console
This commit is contained in:
parent
ea5ce5617a
commit
07e0e1f956
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue