Change log level for "path unavailable"
This commit is contained in:
parent
2a302de42f
commit
2f8b01015d
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ func (s *TagScanner) removeDeletedFolders(ctx context.Context, changed []string)
|
|||
// If a path is unreadable, remove from the DB
|
||||
for _, path := range paths {
|
||||
if readable, err := utils.IsDirReadable(path); !readable {
|
||||
log.Warn(ctx, "Path unavailable. Removing tracks from DB", "path", path, err)
|
||||
log.Info(ctx, "Path unavailable. Removing tracks from DB", "path", path, err)
|
||||
err = s.ds.MediaFile(ctx).DeleteByPath(path)
|
||||
if err != nil {
|
||||
log.Error(ctx, "Error removing MediaFiles from DB", "path", path, err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue