Skip to content

Commit

Permalink
Change log level of some scanner operations
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 17, 2020
1 parent a706cb4 commit 3239be4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions scanner/scanner.go
Expand Up @@ -88,6 +88,7 @@ func (s *Scanner) loadFolders() {

func (s *Scanner) newScanner(f model.MediaFolder) FolderScanner {
if conf.Server.DevNewScanner {
log.Warn("Using *experimental* new scanner")
return NewTagScanner2(f.Path, s.ds)
}
return NewTagScanner(f.Path, s.ds)
Expand Down
6 changes: 3 additions & 3 deletions scanner/tag_scanner_2.go
Expand Up @@ -98,7 +98,7 @@ func (s *TagScanner2) getDirTree(ctx context.Context) (dirMap, error) {
if err != nil {
return nil, err
}
log.Trace("Directory tree loaded", "total", len(dirs), "elapsed", time.Since(start))
log.Debug("Directory tree loaded", "total", len(dirs), "elapsed", time.Since(start))
return dirs, nil
}

Expand All @@ -112,7 +112,7 @@ func (s *TagScanner2) getChangedDirs(ctx context.Context, dirs dirMap, lastModif
}
}
sort.Strings(changed)
log.Trace(ctx, "Finished changed folders check", "total", len(changed), "elapsed", time.Since(start))
log.Debug(ctx, "Finished changed folders check", "total", len(changed), "elapsed", time.Since(start))
return changed
}

Expand Down Expand Up @@ -146,7 +146,7 @@ func (s *TagScanner2) getDeletedDirs(ctx context.Context, allDirs dirMap, change
}

sort.Strings(deleted)
log.Trace(ctx, "Finished deleted folders check", "total", len(deleted), "elapsed", time.Since(start))
log.Debug(ctx, "Finished deleted folders check", "total", len(deleted), "elapsed", time.Since(start))
return deleted, nil
}

Expand Down

0 comments on commit 3239be4

Please sign in to comment.