Adds better stream debugging for SendText methods

This commit is contained in:
Alex Johnson
2021-03-04 11:02:19 -05:00
parent 34062f6fee
commit 3725980462
4 changed files with 9 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ namespace PepperDash.Core
if (IsConnected && Server != null)
{
if (StreamDebugging.TxStreamDebuggingIsEnabled)
Debug.Console(0, this, "Sending {0} characters of text: '{1}'", text.Length, text);
Debug.Console(0, this, "Sending {0} characters of text: '{1}'", text.Length, ComTextHelper.GetDebugText(text));
Server.SendData(bytes, bytes.Length);
}