feat(dcl): add debug-level logging for heartbeat subscription callbacks

This commit is contained in:
Joseph Doherty
2026-03-24 15:47:47 -04:00
parent 5fdeaf613f
commit de7c4067e4

View File

@@ -82,7 +82,11 @@ public class LmxProxyDataConnection : IDataConnection
try try
{ {
_heartbeatSubscriptionId = await SubscribeAsync(heartbeatTag, (_, _) => _staleMonitor.OnValueReceived(), cancellationToken); _heartbeatSubscriptionId = await SubscribeAsync(heartbeatTag, (tag, value) =>
{
_logger.LogDebug("LmxProxy heartbeat received: {Tag} = {Value} (quality={Quality})", tag, value.Value, value.Quality);
_staleMonitor.OnValueReceived();
}, cancellationToken);
_staleMonitor.Start(); _staleMonitor.Start();
_logger.LogInformation("LmxProxy heartbeat monitor started for '{Tag}' with {Seconds}s max silence", heartbeatTag, maxSilenceSeconds); _logger.LogInformation("LmxProxy heartbeat monitor started for '{Tag}' with {Seconds}s max silence", heartbeatTag, maxSilenceSeconds);
} }