Enable httplogger on unittests
authorHannah von Reth <hannah.vonreth@owncloud.com>
Mon, 11 Jan 2021 11:45:41 +0000 (12:45 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Wed, 11 Aug 2021 17:13:44 +0000 (17:13 +0000)
test/syncenginetestutils.cpp

index 7770cde0ec78b788b0081c4d4c7ce1fc90e5ce91..19a87dd35ffb398d1fa49d5ae231e2ac4f18448a 100644 (file)
@@ -846,6 +846,7 @@ FakeFolder::FakeFolder(const FileInfo &fileTemplate, const OCC::Optional<FileInf
     // Needs to be done once
     OCC::SyncEngine::minimumFileAgeForUpload = std::chrono::milliseconds(0);
     OCC::Logger::instance()->setLogFile(QStringLiteral("-"));
+    OCC::Logger::instance()->addLogRule({ QStringLiteral("sync.httplogger=true") });
 
     QDir rootDir { _tempDir.path() };
     qDebug() << "FakeFolder operating on" << rootDir;