mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-01 06:18:16 +00:00
Fixed: MoveArtist logging a failure and a success message
This commit is contained in:
@@ -54,6 +54,9 @@ namespace NzbDrone.Core.Music
|
||||
try
|
||||
{
|
||||
_diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move);
|
||||
_logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path);
|
||||
|
||||
_eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath));
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
@@ -61,10 +64,6 @@ namespace NzbDrone.Core.Music
|
||||
|
||||
RevertPath(artist.Id, sourcePath);
|
||||
}
|
||||
|
||||
_logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path);
|
||||
|
||||
_eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath));
|
||||
}
|
||||
|
||||
private void RevertPath(int artistId, string path)
|
||||
|
||||
Reference in New Issue
Block a user