Silenced GenericTcpIpClient debug messages on send text/bytes

This commit is contained in:
Heath Volmer
2016-11-15 12:57:12 -07:00
parent c92c2e6df4
commit 783ca522ef
10 changed files with 33 additions and 23 deletions

View File

@@ -165,8 +165,8 @@ namespace PepperDash.Core
{
var bytes = Encoding.GetEncoding(28591).GetBytes(text);
// Check debug level before processing byte array
if (Debug.Level == 2)
Debug.Console(2, this, "Sending {0} bytes: '{1}'", bytes.Length, ComTextHelper.GetEscapedText(bytes));
//if (Debug.Level == 2)
// Debug.Console(2, this, "Sending {0} bytes: '{1}'", bytes.Length, ComTextHelper.GetEscapedText(bytes));
Client.SendData(bytes, bytes.Length);
}
@@ -186,8 +186,8 @@ namespace PepperDash.Core
public void SendBytes(byte[] bytes)
{
if (Debug.Level == 2)
Debug.Console(2, this, "Sending {0} bytes: '{1}'", bytes.Length, ComTextHelper.GetEscapedText(bytes));
//if (Debug.Level == 2)
// Debug.Console(2, this, "Sending {0} bytes: '{1}'", bytes.Length, ComTextHelper.GetEscapedText(bytes));
Client.SendData(bytes, bytes.Length);
}