mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Optimize log
This commit is contained in:
parent
513c740f8d
commit
553bdbf8eb
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
|
|||
import 'package:logging/logging.dart';
|
||||
import 'package:nc_photos/account.dart';
|
||||
import 'package:nc_photos/entity/file.dart';
|
||||
import 'package:nc_photos/exception.dart';
|
||||
import 'package:nc_photos/use_case/ls.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
|
@ -22,6 +23,9 @@ class ScanDir {
|
|||
for (final i in items.where((element) => element.isCollection == true)) {
|
||||
yield* this(account, i);
|
||||
}
|
||||
} on CacheNotFoundException catch (e) {
|
||||
_log.info("[call] Cache not found");
|
||||
yield e;
|
||||
} catch (e, stacktrace) {
|
||||
_log.shout(
|
||||
"[call] Failed while listing dir" +
|
||||
|
|
Loading…
Reference in a new issue