projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac4be17
)
Enable csync logs in unit tests
author
Jocelyn Turcotte
<jturcotte@woboq.com>
Thu, 17 Aug 2017 16:32:03 +0000
(18:32 +0200)
committer
Roeland 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
patch
|
blob
|
history
diff --git
a/test/syncenginetestutils.h
b/test/syncenginetestutils.h
index 062b62cea74cb40b6fa004167b465f99c91a7df7..2feacd11f40dbe764c98a9900f0c6228f3793333 100644
(file)
--- 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);