Skip to content

Commit 140cdf5

Browse files
committed
Add better error messsage
1 parent 6a5249b commit 140cdf5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

LiveControlGateway/LcgKeepAlive.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ private async void OnTimerElapsed(object? sender, System.Timers.ElapsedEventArgs
9090
}
9191
catch (Exception ex)
9292
{
93-
94-
_logger.LogError(ex, "Error sending keep alive");
95-
if(++_errorsInRow >= 10)
93+
++_errorsInRow;
94+
_logger.LogError(ex, "Error sending gateway keep alive {Attempt}", _errorsInRow);
95+
if(_errorsInRow >= 10)
9696
{
9797
_logger.LogCritical("Too many errors in a row sending keep alive, terminating process");
9898
Environment.Exit(1001);

0 commit comments

Comments
 (0)