[PATCH 2 of 4] Debugging: Always log the complete response
Wald Commits
scm-commit at wald.intevation.org
Thu May 22 10:52:15 CEST 2014
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1400748628 0
# Node ID cb044efdaf0d09a6be89e1d7e8c1160b015d316a
# Parent fc61ef6612b0b46813ae4f56db8d7a32539dd0ff
Debugging: Always log the complete response
diff -r fc61ef6612b0 -r cb044efdaf0d ui/downloader.cpp
--- a/ui/downloader.cpp Wed May 21 08:40:13 2014 +0000
+++ b/ui/downloader.cpp Thu May 22 08:50:28 2014 +0000
@@ -120,6 +120,8 @@
response = mSSLConnection.read(1024);
+ qDebug() << "Response from server was: " << response;
+
if (response.isNull()) {
qDebug() << "No response";
emit error (tr("Connection lost"), SSLConnection::ConnectionLost);
@@ -128,7 +130,6 @@
headers = parseHeaders(&response);
const QString lastModified = headers.value("Last-Modified");
- qDebug() << "Headers: " << headers;
if (!lastModified.isEmpty()) {
QDateTime candidate = cLocale.toDateTime(lastModified,
"ddd, dd MMM yyyy HH:mm:ss' GMT'");
@@ -137,7 +138,6 @@
}
}
emit error (tr("Invalid response from the server"), SSLConnection::InvalidResponse);
- qDebug() << "Response from server was: " << response;
return QDateTime();
}
More information about the Trustbridge-commits
mailing list