Update message output for performFullItemScan or oneDriveFullScanTrigger (#945)

* Update message output depending on if performFullItemScan or oneDriveFullScanTrigger was set
This commit is contained in:
abraunegg 2020-06-05 06:45:19 +10:00 committed by GitHub
parent b7f69e2541
commit df361b261b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1169,10 +1169,13 @@ final class SyncEngine
// oneDriveFullScanTrigger should be false unless set by actions on OneDrive and only if sync_list or skip_dir is used
log.vdebug("performFullItemScan or oneDriveFullScanTrigger = true");
// full scan was requested or triggered
log.vlog("Processing ", nrChanges, " OneDrive items to ensure consistent local state due to a full scan being requested");
// unset now the full scan trigger if set
// use the right message
if (oneDriveFullScanTrigger) {
log.vlog("Processing ", nrChanges, " OneDrive items to ensure consistent local state due to a full scan being triggered by actions on OneDrive");
// unset now the full scan trigger if set
unsetOneDriveFullScanTrigger();
} else {
log.vlog("Processing ", nrChanges, " OneDrive items to ensure consistent local state due to a full scan being requested");
}
} else {
// standard message