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:
authorJocelyn Turcotte <jturcotte@woboq.com>2017-08-17 19:32:03 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2017-08-22 16:22:56 +0300
commit59ea79d9e6f91e442d85558af10dd63a77752e51 (patch)
tree6600b295a002d456d07c6e919f70f8ad9b08b4dc /test/syncenginetestutils.h
parent4e5898efd76201b104112154be8eca6b2c36a39f (diff)
Enable csync logs in unit tests
Go through the Logger to enable the csync-QDebug bridge.
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h3
1 files changed, 2 insertions, 1 deletions
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);