diff --git a/QRBee.Load.Generator/AnomalyBase.cs b/QRBee.Load.Generator/AnomalyBase.cs index 8a2690f..1a9d002 100644 --- a/QRBee.Load.Generator/AnomalyBase.cs +++ b/QRBee.Load.Generator/AnomalyBase.cs @@ -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; diff --git a/QRBee.Load.Generator/AnomalyReporter.cs b/QRBee.Load.Generator/AnomalyReporter.cs index 52b7956..848257f 100644 --- a/QRBee.Load.Generator/AnomalyReporter.cs +++ b/QRBee.Load.Generator/AnomalyReporter.cs @@ -23,6 +23,7 @@ namespace QRBee.Load.Generator if (writeHeader) { _writer.WriteLine("Start,End,Label"); + _writer.Flush(); } }