From c23ea6de6ff3e85b0876fb3907259591f7101a5d Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Tue, 12 Jul 2022 13:21:28 -0400 Subject: [PATCH] [Plugin] Change short connector notification and related connector update debug messages to Trace level. --- src/TouchPortalPlugin/Plugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TouchPortalPlugin/Plugin.cs b/src/TouchPortalPlugin/Plugin.cs index 8347b5e..e351b0c 100644 --- a/src/TouchPortalPlugin/Plugin.cs +++ b/src/TouchPortalPlugin/Plugin.cs @@ -752,7 +752,7 @@ private void UpdateRelatedConnectors(/*object obj*/ ConnectorTrackingData data) value = device.ScaleInputToAxisRange(data.axis, 50.0f, instance.rangeMin, instance.rangeMax); value = device.ScaleAxisToInputRange(data.axis, value, instance.rangeMin, instance.rangeMax); } - _logger.LogDebug($"[UpdateRelatedConnectors] Sending update for {instance.shortId} ({data.devId}, {data.type}, {data.targetId}) with val {value}; orig val: {data.lastValue}; range: {instance.rangeMin}/{instance.rangeMax}"); + _logger.LogTrace($"[UpdateRelatedConnectors] Sending update for {instance.shortId} ({data.devId}, {data.type}, {data.targetId}) with val {value}; orig val: {data.lastValue}; range: {instance.rangeMin}/{instance.rangeMax}"); if (value > -1) UpdateTPConnector(instance.shortId, value); } @@ -1293,7 +1293,7 @@ public void OnConnecterChangeEvent(ConnectorChangeEvent message) // convoluted malarkey to try and track which slider instances operate on the same axes, and the whole "short ID" business public void OnShortConnectorIdNotificationEvent(ShortConnectorIdNotificationEvent message) { - _logger.LogDebug($"[ShortConnectorIdNotificationEvent] ConnectorId: {message.ConnectorId}; shortId: {message.ShortId};"); + _logger.LogTrace($"[ShortConnectorIdNotificationEvent] ConnectorId: {message.ConnectorId}; shortId: {message.ShortId};"); // we only use the last part of the connectorId which is meaningful // note that ShortConnectorIdNotificationEvent.ActualConnectorId invokes the connectorId parser. string connId = message.ActualConnectorId?.Split('.').Last();