Remove device folder name from logs

This commit is contained in:
Neeraj Gupta 2022-10-20 14:56:56 +05:30
parent 999b9dd0f2
commit 635bc0bed0
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 5 additions and 4 deletions

View file

@ -372,8 +372,10 @@ extension DeviceFiles on FilesDB {
deviceCollections.add(deviceCollection); deviceCollections.add(deviceCollection);
} }
if (includeCoverThumbnail) { if (includeCoverThumbnail) {
deviceCollections.sort((a, b) => deviceCollections.sort(
b.thumbnail.creationTime.compareTo(a.thumbnail.creationTime)); (a, b) =>
b.thumbnail.creationTime.compareTo(a.thumbnail.creationTime),
);
} }
return deviceCollections; return deviceCollections;
} catch (e) { } catch (e) {

View file

@ -259,7 +259,6 @@ class RemoteSyncService {
await _db.getDevicePathIDToLocalIDMap(); await _db.getDevicePathIDToLocalIDMap();
bool moreFilesMarkedForBackup = false; bool moreFilesMarkedForBackup = false;
for (final deviceCollection in deviceCollections) { for (final deviceCollection in deviceCollections) {
_logger.fine("processing ${deviceCollection.name}");
final Set<String> localIDsToSync = final Set<String> localIDsToSync =
pathIdToLocalIDs[deviceCollection.id] ?? {}; pathIdToLocalIDs[deviceCollection.id] ?? {};
if (deviceCollection.uploadStrategy == UploadStrategy.ifMissing) { if (deviceCollection.uploadStrategy == UploadStrategy.ifMissing) {
@ -400,7 +399,7 @@ class RemoteSyncService {
if (collectionByID == null || collectionByID.isDeleted) { if (collectionByID == null || collectionByID.isDeleted) {
_logger.info( _logger.info(
"Collection $deviceCollectionID either deleted or missing " "Collection $deviceCollectionID either deleted or missing "
"for path ${deviceCollection.name}", "for path ${deviceCollection.id}",
); );
deviceCollectionID = -1; deviceCollectionID = -1;
} }