Networkjobs: Only log a subset of the account url.
authorKlaas Freitag <freitag@owncloud.com>
Sun, 12 Apr 2015 10:35:40 +0000 (12:35 +0200)
committerKlaas Freitag <freitag@owncloud.com>
Sun, 12 Apr 2015 10:37:14 +0000 (12:37 +0200)
This avoids disclosing of user and password in the logfile which can
happen in some cases.

binary
src/libsync/networkjobs.cpp

diff --git a/binary b/binary
index 01d73965dc8b862d1b2310d3ef801c297b697ec7..139acd195bd74f69ff93d37cba7eec62fec77287 160000 (submodule)
--- a/binary
+++ b/binary
@@ -1 +1 @@
-Subproject commit 01d73965dc8b862d1b2310d3ef801c297b697ec7
+Subproject commit 139acd195bd74f69ff93d37cba7eec62fec77287
index 5bd4144be6b81eb57469e6478dd70db2387f92e3..96edf8ddd5ab80a9f3e3763f93d3ce936077c21e 100644 (file)
@@ -223,7 +223,10 @@ void AbstractNetworkJob::start()
     _durationTimer.start();
     _duration = 0;
 
-    qDebug() << "!!!" << metaObject()->className() << "created for" << account()->url() << "querying" << path();
+    const QUrl url = account()->url();
+    const QString displayUrl = QString( "%1://%2%3").arg(url.scheme()).arg(url.host()).arg(url.path());
+
+    qDebug() << "!!!" << metaObject()->className() << "created for" << displayUrl << "+" << path();
 }
 
 void AbstractNetworkJob::slotTimeout()