[Pkg-owncloud-commits] [owncloud-client] 407/498: Propagator: More debug output for downloads/uploads

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit f01b7bb5db3d87083ea09451647cda322d0aebb3
Author: Markus Goetz <markus at woboq.com>
Date:   Thu Jul 30 14:27:54 2015 +0200

    Propagator: More debug output for downloads/uploads
---
 src/libsync/propagatedownload.cpp | 6 +++++-
 src/libsync/propagateupload.cpp   | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp
index 936b4ef..c97f19a 100644
--- a/src/libsync/propagatedownload.cpp
+++ b/src/libsync/propagatedownload.cpp
@@ -286,6 +286,7 @@ void GETFileJob::slotReadyRead()
 
 void GETFileJob::slotTimeout()
 {
+    qDebug() << "Timeout" << reply()->request().url();
     _errorString =  tr("Connection Timeout");
     _errorStatus = SyncFileItem::FatalError;
     reply()->abort();
@@ -402,7 +403,10 @@ void PropagateDownloadFileQNAM::slotGetFinished()
 
     qDebug() << Q_FUNC_INFO << job->reply()->request().url() << "FINISHED WITH STATUS"
              << job->reply()->error()
-             << (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString());
+             << (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString())
+             << _item->_httpErrorCode
+             << _tmpFile.size() << _item->_size << job->resumeStart()
+             << job->reply()->rawHeader("Content-Range") << job->reply()->rawHeader("Content-Length");
 
     QNetworkReply::NetworkError err = job->reply()->error();
     if (err != QNetworkReply::NoError) {
diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp
index 7f35772..3a39626 100644
--- a/src/libsync/propagateupload.cpp
+++ b/src/libsync/propagateupload.cpp
@@ -110,6 +110,7 @@ void PUTFileJob::start() {
 }
 
 void PUTFileJob::slotTimeout() {
+    qDebug() << "Timeout" << reply()->request().url();
     _errorString =  tr("Connection Timeout");
     reply()->abort();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list