mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-25 00:14:42 +01:00
Add log
This commit is contained in:
parent
1a09dc37a0
commit
0b3aa72015
1 changed files with 3 additions and 0 deletions
|
@ -104,8 +104,11 @@ class FileNpDbDataSource implements FileDataSource2 {
|
||||||
Stream<List<FileDescriptor>> getFileDescriptors(
|
Stream<List<FileDescriptor>> getFileDescriptors(
|
||||||
Account account, String shareDirPath) async* {
|
Account account, String shareDirPath) async* {
|
||||||
_log.info("[getFileDescriptors] $account");
|
_log.info("[getFileDescriptors] $account");
|
||||||
|
final stopwatch = Stopwatch()..start();
|
||||||
yield await _getPartialFileDescriptors(account);
|
yield await _getPartialFileDescriptors(account);
|
||||||
yield await _getCompleteFileDescriptors(account, shareDirPath);
|
yield await _getCompleteFileDescriptors(account, shareDirPath);
|
||||||
|
_log.info(
|
||||||
|
"[getFileDescriptors] Elapsed time: ${stopwatch.elapsedMilliseconds}ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Add table
Reference in a new issue