Skip to content

Commit

Permalink
[Plugin] Change short connector notification and related connector up…
Browse files Browse the repository at this point in the history
…date debug messages to Trace level.
  • Loading branch information
mpaperno committed Jul 12, 2022
1 parent 0d5aa7f commit c23ea6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TouchPortalPlugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c23ea6d

Please sign in to comment.