Add elapsed time when scanner does not detect any new changes

This commit is contained in:
Deluan 2020-12-13 20:48:16 -05:00 committed by Joe Stump
parent 2bdcc7b745
commit e0dbf1972a
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -112,7 +112,7 @@ func (s *TagScanner) Scan(ctx context.Context, lastModifiedSince time.Time, prog
deletedDirs := s.getDeletedDirs(ctx, allFSDirs, allDBDirs)
if len(deletedDirs)+len(changedDirs) == 0 {
log.Debug(ctx, "No changes found in Music Folder", "folder", s.rootFolder)
log.Debug(ctx, "No changes found in Music Folder", "folder", s.rootFolder, "elapsed", time.Since(start))
return nil
}