mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
improve logging of discovery policy decisions when scanning folders
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
686f78bebc
commit
d36b2ee793
@ -32,11 +32,20 @@ class ExcludedFiles;
|
||||
|
||||
namespace OCC {
|
||||
|
||||
namespace LocalDiscoveryEnums {
|
||||
|
||||
OCSYNC_EXPORT Q_NAMESPACE
|
||||
|
||||
enum class LocalDiscoveryStyle {
|
||||
FilesystemOnly, //< read all local data from the filesystem
|
||||
DatabaseAndFilesystem, //< read from the db, except for listed paths
|
||||
};
|
||||
|
||||
Q_ENUM_NS(LocalDiscoveryStyle)
|
||||
|
||||
}
|
||||
|
||||
using OCC::LocalDiscoveryEnums::LocalDiscoveryStyle;
|
||||
|
||||
class Account;
|
||||
class SyncJournalDb;
|
||||
|
||||
@ -586,7 +586,11 @@ void SyncEngine::startSync()
|
||||
if (!_discoveryPhase->_remoteFolder.endsWith('/'))
|
||||
_discoveryPhase->_remoteFolder+='/';
|
||||
_discoveryPhase->_syncOptions = _syncOptions;
|
||||
_discoveryPhase->_shouldDiscoverLocaly = [this](const QString &s) { return shouldDiscoverLocally(s); };
|
||||
_discoveryPhase->_shouldDiscoverLocaly = [this](const QString &s) {
|
||||
const auto result = shouldDiscoverLocally(s);
|
||||
qCInfo(lcEngine) << "shouldDiscoverLocaly" << s << (result ? "true" : "false");
|
||||
return result;
|
||||
};
|
||||
_discoveryPhase->setSelectiveSyncBlackList(selectiveSyncBlackList);
|
||||
_discoveryPhase->setSelectiveSyncWhiteList(_journal->getSelectiveSyncList(SyncJournalDb::SelectiveSyncWhiteList, &ok));
|
||||
if (!ok) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user