From 84cf52fdf1b351a312a1134f63b9341f29f0ccfc Mon Sep 17 00:00:00 2001 From: John Reese Date: Sun, 13 Apr 2014 11:47:54 -0700 Subject: [PATCH] Extra debug output --- push.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/push.cpp b/push.cpp index b9676e9..65d771d 100755 --- a/push.cpp +++ b/push.cpp @@ -1628,8 +1628,6 @@ void CPushSocket::Request(bool post, const CString& host, const CString& url, MC CString query = build_query_string(parameters); - parent->PutDebug("Query string: " + query); - // Request headers and POST body CString request; @@ -1647,6 +1645,7 @@ void CPushSocket::Request(bool post, const CString& host, const CString& url, MC request += "Host: " + host + crlf; request += "Connection: close" + crlf; request += "User-Agent: " + user_agent + crlf; + parent->PutDebug("User-Agent: " + user_agent); if (auth != "") { @@ -1660,6 +1659,8 @@ void CPushSocket::Request(bool post, const CString& host, const CString& url, MC request += query; } + parent->PutDebug("Query string: " + query); + Write(request); parent->PutDebug("Request sending"); } @@ -1674,13 +1675,13 @@ void CPushSocket::ReadLine(const CString& data) CString status = data.Token(1); CString message = data.Token(2, true); - parent->PutDebug(status); - parent->PutDebug(message); + parent->PutDebug("Status: " + status); + parent->PutDebug("Message: " + message); first = false; } else { - parent->PutDebug(data); + parent->PutDebug("Data: " + data); } }