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

@@ -432,7 +432,7 @@ namespace PepperDash.Core
if (Client != 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));
TheStream.Write(text);
TheStream.Flush();