Update logging

This commit is contained in:
Vishnu Mohandas 2020-06-02 02:17:26 +05:30
parent eef26ffebd
commit f715e17e3d

View file

@ -237,7 +237,6 @@ class PhotoDB {
}
Future<Photo> getLatestPhotoInRemoteFolder(int folderId) async {
_logger.info("Querying for folder: " + folderId.toString());
final db = await instance.database;
var rows = await db.query(
table,
@ -249,7 +248,7 @@ class PhotoDB {
if (rows.isNotEmpty) {
return _getPhotoFromRow(rows[0]);
} else {
throw ("No photo found in remote folder");
throw ("No photo found in remote folder " + folderId.toString());
}
}