From: Jocelyn Turcotte Date: Thu, 17 Aug 2017 16:32:03 +0000 (+0200) Subject: Enable csync logs in unit tests X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~701^2~142 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b30c3202f0908cdecb54e9e401dad6f7a10f7f5d;p=nextcloud-desktop.git Enable csync logs in unit tests Go through the Logger to enable the csync-QDebug bridge. --- diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index 062b62cea..2feacd11f 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -8,6 +8,7 @@ #include "account.h" #include "creds/abstractcredentials.h" +#include "logger.h" #include "filesystem.h" #include "syncengine.h" #include "syncjournaldb.h" @@ -806,7 +807,7 @@ public: { // Needs to be done once OCC::SyncEngine::minimumFileAgeForUpload = 0; - csync_set_log_level(11); + OCC::Logger::instance()->setLogFile("-"); QDir rootDir{_tempDir.path()}; toDisk(rootDir, fileTemplate);