Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-09-14 13:58:42 +0300
committerHannah von Reth <vonreth@kde.org>2022-09-14 15:41:54 +0300
commitca31b1aa23d732eda9121a3824b06875fb360147 (patch)
tree9904155d97491f290057c9e1e3b80035f72382ed
parentcfe1219c10886b2ada5f717e24bc84845b0c1b76 (diff)
Improve network job logging
-rw-r--r--src/libsync/abstractnetworkjob.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp
index 75bb43ad5..b98c6a1ac 100644
--- a/src/libsync/abstractnetworkjob.cpp
+++ b/src/libsync/abstractnetworkjob.cpp
@@ -345,7 +345,7 @@ void AbstractNetworkJob::retry()
{
OC_ENFORCE(!_verb.isEmpty());
_retryCount++;
- qCInfo(lcNetworkJob) << "Restarting" << _verb << _request.url() << "for the" << _retryCount << "time";
+ qCInfo(lcNetworkJob) << "Restarting" << this << "for the" << _retryCount << "time";
if (_requestBody) {
if (_requestBody->isSequential()) {
Q_ASSERT(_requestBody->isOpen());
@@ -389,18 +389,18 @@ QDebug operator<<(QDebug debug, const OCC::AbstractNetworkJob *job)
{
QDebugStateSaver saver(debug);
debug.setAutoInsertSpaces(false);
- debug << job->metaObject()->className() << "(" << job->url().toDisplayString()
- << "," << job->_verb;
+ debug << job->metaObject()->className() << "(Account: " << job->account()->uuid().toString(QUuid::WithoutBraces) << ", " << job->url().toDisplayString()
+ << ", " << job->_verb;
if (auto reply = job->_reply) {
- debug << ", " << reply->request().rawHeader("Original-Request-ID")
- << ", " << reply->request().rawHeader("X-Request-ID");
+ debug << ", Original-Request-ID: " << reply->request().rawHeader("Original-Request-ID")
+ << ", X-Request-ID: " << reply->request().rawHeader("X-Request-ID");
const auto errorString = reply->rawHeader(QByteArrayLiteral("OC-ErrorString"));
if (!errorString.isEmpty()) {
- debug << ", " << errorString;
+ debug << ", Error:" << errorString;
}
if (reply->error() != QNetworkReply::NoError) {
- debug << ", " << reply->errorString();
+ debug << ", NetworkError: " << reply->errorString();
}
}
if (job->_timedout) {