mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
Enable csync logs in unit tests
Go through the Logger to enable the csync-QDebug bridge.
This commit is contained in:
parent
4e5898efd7
commit
59ea79d9e6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue