feat(dcl): log connection disconnect events to site event log

This commit is contained in:
Joseph Doherty
2026-03-24 14:35:12 -04:00
parent d4397910f0
commit 0d03aec4f2

View File

@@ -235,6 +235,15 @@ public class DataConnectionActor : UntypedActor, IWithStash, IWithTimers
_log.Warning("[{0}] Entering Reconnecting state", _connectionName); _log.Warning("[{0}] Entering Reconnecting state", _connectionName);
_healthCollector.UpdateConnectionHealth(_connectionName, ConnectionHealth.Disconnected); _healthCollector.UpdateConnectionHealth(_connectionName, ConnectionHealth.Disconnected);
_healthCollector.UpdateConnectionEndpoint(_connectionName, "Disconnected"); _healthCollector.UpdateConnectionEndpoint(_connectionName, "Disconnected");
// Log disconnect to site event log
if (_siteEventLogger != null)
{
_ = _siteEventLogger.LogEventAsync(
"connection", "Warning", null, _connectionName,
$"Connection lost — entering reconnect cycle", null);
}
Become(Reconnecting); Become(Reconnecting);
// WP-9: Push bad quality for all subscribed tags on disconnect // WP-9: Push bad quality for all subscribed tags on disconnect