feat(dcl): add debug-level logging for heartbeat subscription callbacks
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user