mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 12:42:51 +02:00
Fix RootFolder logs in DiskScanService
This commit is contained in:
parent
13fd31b67d
commit
20cf7c1ffc
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ public void Scan(List<string> folders = null, FilterFilesType filter = FilterFil
|
||||||
{
|
{
|
||||||
if (!_diskProvider.FolderExists(rootFolder.Path))
|
if (!_diskProvider.FolderExists(rootFolder.Path))
|
||||||
{
|
{
|
||||||
_logger.Warn("Authors' root folder ({0}) doesn't exist.", rootFolder);
|
_logger.Warn("Authors' root folder ({0}) doesn't exist.", rootFolder.Path);
|
||||||
var skippedAuthors = _authorService.GetAuthors(authorIds);
|
var skippedAuthors = _authorService.GetAuthors(authorIds);
|
||||||
skippedAuthors.ForEach(x => _eventAggregator.PublishEvent(new AuthorScanSkippedEvent(x, AuthorScanSkippedReason.RootFolderDoesNotExist)));
|
skippedAuthors.ForEach(x => _eventAggregator.PublishEvent(new AuthorScanSkippedEvent(x, AuthorScanSkippedReason.RootFolderDoesNotExist)));
|
||||||
return;
|
return;
|
||||||
|
|
@ -120,7 +120,7 @@ public void Scan(List<string> folders = null, FilterFilesType filter = FilterFil
|
||||||
|
|
||||||
if (_diskProvider.FolderEmpty(rootFolder.Path))
|
if (_diskProvider.FolderEmpty(rootFolder.Path))
|
||||||
{
|
{
|
||||||
_logger.Warn("Authors' root folder ({0}) is empty.", rootFolder);
|
_logger.Warn("Authors' root folder ({0}) is empty.", rootFolder.Path);
|
||||||
var skippedAuthors = _authorService.GetAuthors(authorIds);
|
var skippedAuthors = _authorService.GetAuthors(authorIds);
|
||||||
skippedAuthors.ForEach(x => _eventAggregator.PublishEvent(new AuthorScanSkippedEvent(x, AuthorScanSkippedReason.RootFolderIsEmpty)));
|
skippedAuthors.ForEach(x => _eventAggregator.PublishEvent(new AuthorScanSkippedEvent(x, AuthorScanSkippedReason.RootFolderIsEmpty)));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue