Enable csync logs in unit tests
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 17 Aug 2017 16:32:03 +0000 (18:32 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:03 +0000 (22:01 +0200)
Go through the Logger to enable the csync-QDebug bridge.

test/syncenginetestutils.h

index 062b62cea74cb40b6fa004167b465f99c91a7df7..2feacd11f40dbe764c98a9900f0c6228f3793333 100644 (file)
@@ -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);