Clean up some debug statements

This commit is contained in:
Brandon Smith
2015-08-24 18:55:02 -03:00
parent 649e1bbe7c
commit 2df72bbb8f
2 changed files with 11 additions and 8 deletions

View File

@@ -130,8 +130,9 @@ namespace Discord
}
while (!result.EndOfMessage);
//TODO: Remove this
#if DEBUG
System.Diagnostics.Debug.WriteLine(">>> " + builder.ToString());
#endif
await ProcessMessage(builder.ToString());
builder.Clear();
@@ -171,15 +172,17 @@ namespace Discord
protected void QueueMessage(object message)
{
//TODO: Remove this
#if DEBUG
System.Diagnostics.Debug.WriteLine("<<< " + JsonConvert.SerializeObject(message));
#endif
var bytes = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message));
_sendQueue.Enqueue(bytes);
}
protected Task SendMessage(object message, CancellationToken cancelToken)
{
//TODO: Remove this
#if DEBUG
System.Diagnostics.Debug.WriteLine("<<< " + JsonConvert.SerializeObject(message));
#endif
return SendMessage(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message)), cancelToken);
}
protected async Task SendMessage(byte[] message, CancellationToken cancelToken)