DEEP-37 Fix for anomaly reporting

This commit is contained in:
Andrey Shabarshov 2023-07-25 09:24:13 +01:00
parent c5895adaa5
commit 241d7d434a
2 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,7 @@ internal class AnomalyBase
if (_anomalyActive)
{
_anomalyActive = false;
_anomalyReporter.Report(_anomalyStart, _anomalyEnd, "Unconfirmed transaction");
// _anomalyReporter.Report(_anomalyStart, _anomalyEnd, "Unconfirmed transaction");
_logger.LogWarning($"Anomaly:{Name} ended");
}
}
@ -61,6 +61,7 @@ internal class AnomalyBase
_anomalyEnd = _anomalyStart + _anomalyDuration;
_anomalyActive = true;
_logger.LogWarning($"Anomaly: {Name}. Dice={dice} Ends=\"{_anomalyEnd.ToLocalTime():s}\"");
_anomalyReporter.Report(_anomalyStart, _anomalyEnd, $"{Name}");
}
}
return true;

View File

@ -23,6 +23,7 @@ namespace QRBee.Load.Generator
if (writeHeader)
{
_writer.WriteLine("Start,End,Label");
_writer.Flush();
}
}