fix(dcl): log the initial connect to Site Event Logging like every other transition (review 2026-10-21 02/U4)

This commit is contained in:
Joseph Doherty
2026-10-22 06:31:23 -04:00
parent 3543a7f295
commit cfe95a7e5a
3 changed files with 33 additions and 3 deletions
@@ -1088,6 +1088,14 @@ public class DataConnectionActor : UntypedActor, IWithTimers
}
_log.Info("[{0}] Connection established", _connectionName);
// Every connection transition reaches the site event log — the initial connect
// included, not only restore / loss / failover (review 2026-10-21 02/U4).
if (_siteEventLogger != null)
{
_ = _siteEventLogger.LogEventAsync(
"connection", "Info", null, _connectionName,
$"Connection established on {_activeEndpoint} endpoint", null);
}
BecomeConnected();
}
else