mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Tweak logs
This commit is contained in:
parent
87dfe7ef5c
commit
46e077f5ab
1 changed files with 5 additions and 2 deletions
|
@ -24,6 +24,7 @@ class UpdateMissingMetadata {
|
|||
yield d;
|
||||
continue;
|
||||
}
|
||||
final File file = d;
|
||||
try {
|
||||
// since we need to download multiple images in their original size,
|
||||
// we only do it with WiFi
|
||||
|
@ -31,7 +32,6 @@ class UpdateMissingMetadata {
|
|||
if (!shouldRun) {
|
||||
return;
|
||||
}
|
||||
final File file = d;
|
||||
_log.fine("[call] Updating metadata for ${file.path}");
|
||||
final metadata = await metadataLoader.loadFile(account, file);
|
||||
int imageWidth, imageHeight;
|
||||
|
@ -54,7 +54,10 @@ class UpdateMissingMetadata {
|
|||
AlbumRepo(AlbumCachedDataSource()))(account, file, metadataObj);
|
||||
yield file;
|
||||
} catch (e, stacktrace) {
|
||||
_log.shout("[call] Failed while getting metadata", e, stacktrace);
|
||||
_log.shout(
|
||||
"[call] Failed while getting metadata for ${file.contentType} file",
|
||||
e,
|
||||
stacktrace);
|
||||
yield e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue