Add logs for freeup space flow

This commit is contained in:
Neeraj Gupta 2022-07-03 16:05:46 +05:30
parent fdadf36baa
commit db14a1a9d3
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -345,6 +345,7 @@ Future<List<String>> _deleteLocalFilesInOneShot(
BuildContext context,
List<String> localIDs,
) async {
_logger.info('starting _deleteLocalFilesInOneShot for ${localIDs.length}');
final List<String> deletedIDs = [];
final dialog = createProgressDialog(
context,
@ -356,6 +357,8 @@ Future<List<String>> _deleteLocalFilesInOneShot(
} catch (e, s) {
_logger.severe("Could not delete files ", e, s);
}
_logger.info('_deleteLocalFilesInOneShot deleted ${deletedIDs.length} out '
'of ${localIDs.length}');
await dialog.hide();
return deletedIDs;
}