Fix RootFolder logs in DiskScanService

Fixes #3283
This commit is contained in:
Qstick 2023-01-14 17:10:18 -06:00
parent f7e0073f76
commit 1980173d86
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ namespace NzbDrone.Core.MediaFiles
{
if (!_diskProvider.FolderExists(rootFolder.Path))
{
_logger.Warn("Artists' root folder ({0}) doesn't exist.", rootFolder);
_logger.Warn("Artists' root folder ({0}) doesn't exist.", rootFolder.Path);
var skippedArtists = _artistService.GetArtists(artistIds);
skippedArtists.ForEach(x => _eventAggregator.PublishEvent(new ArtistScanSkippedEvent(x, ArtistScanSkippedReason.RootFolderDoesNotExist)));
return;
@ -113,7 +113,7 @@ namespace NzbDrone.Core.MediaFiles
if (_diskProvider.FolderEmpty(rootFolder.Path))
{
_logger.Warn("Artists' root folder ({0}) is empty.", rootFolder);
_logger.Warn("Artists' root folder ({0}) is empty.", rootFolder.Path);
var skippedArtists = _artistService.GetArtists(artistIds);
skippedArtists.ForEach(x => _eventAggregator.PublishEvent(new ArtistScanSkippedEvent(x, ArtistScanSkippedReason.RootFolderIsEmpty)));
return;