Added: Additional Logging and Messaging for Albums

pull/288/head
Qstick 7 years ago
parent 3e0d0f17f2
commit 4dd857ea30

@ -5,6 +5,7 @@ using FluentValidation;
using FluentValidation.Results;
using NLog;
using NzbDrone.Common.EnsureThat;
using NzbDrone.Common.Instrumentation.Extensions;
using NzbDrone.Core.Exceptions;
using NzbDrone.Core.MetadataSource;
@ -41,7 +42,7 @@ namespace NzbDrone.Core.Music
var tuple = AddSkyhookData(newAlbum);
newAlbum = tuple.Item1;
_refreshTrackService.RefreshTrackInfo(newAlbum, tuple.Item2);
_logger.Info("Adding Album {0}", newAlbum);
_logger.ProgressInfo("Adding Album {0}", newAlbum.Title);
_albumService.AddAlbum(newAlbum);
return newAlbum;
@ -60,6 +61,7 @@ namespace NzbDrone.Core.Music
album.LastInfoSync = added;
album = _albumService.AddAlbum(album);
_refreshTrackService.RefreshTrackInfo(album,tuple.Item2);
_logger.ProgressInfo("Adding Album {0}", newAlbum.Title);
albumsToAdd.Add(album);
}

@ -107,7 +107,9 @@ namespace NzbDrone.Core.Music
_refreshTrackService.RefreshTrackInfo(album, tuple.Item2);
_albumService.UpdateMany(new List<Album>{album});
_logger.Debug("Finished album refresh for {0}", album.Title);
}
public void Execute(RefreshAlbumCommand message)

Loading…
Cancel
Save