update logging

This commit is contained in:
Luke Pulverenti 2016-08-17 01:33:30 -04:00
parent 1c815d2e72
commit a69f8ecb3d
2 changed files with 11 additions and 2 deletions

View File

@ -170,10 +170,13 @@ namespace MediaBrowser.Controller.Entities.TV
Func<BaseItem, bool> filter = i => UserViewBuilder.Filter(i, user, query, UserDataManager, LibraryManager); Func<BaseItem, bool> filter = i => UserViewBuilder.Filter(i, user, query, UserDataManager, LibraryManager);
Logger.Debug("Season.GetItemsInternal entering GetEpisodes");
var items = GetEpisodes(user).Where(filter); var items = GetEpisodes(user).Where(filter);
Logger.Debug("Season.GetItemsInternal entering PostFilterAndSort");
var result = PostFilterAndSort(items, query); var result = PostFilterAndSort(items, query);
Logger.Debug("Season.GetItemsInternal complete");
return Task.FromResult(result); return Task.FromResult(result);
} }

View File

@ -379,13 +379,19 @@ namespace MediaBrowser.Controller.Entities.TV
private IEnumerable<Episode> GetAllEpisodes(User user) private IEnumerable<Episode> GetAllEpisodes(User user)
{ {
return LibraryManager.GetItemList(new InternalItemsQuery(user) Logger.Debug("Series.GetAllEpisodes entering GetItemList");
var result = LibraryManager.GetItemList(new InternalItemsQuery(user)
{ {
AncestorWithPresentationUniqueKey = GetUniqueSeriesKey(this), AncestorWithPresentationUniqueKey = GetUniqueSeriesKey(this),
IncludeItemTypes = new[] { typeof(Episode).Name }, IncludeItemTypes = new[] { typeof(Episode).Name },
SortBy = new[] { ItemSortBy.SortName } SortBy = new[] { ItemSortBy.SortName }
}).Cast<Episode>(); }).Cast<Episode>().ToList();
Logger.Debug("Series.GetAllEpisodes returning {0} episodes", result.Count);
return result;
} }
public IEnumerable<Episode> GetSeasonEpisodes(User user, Season parentSeason, bool includeMissingEpisodes, bool includeVirtualUnairedEpisodes) public IEnumerable<Episode> GetSeasonEpisodes(User user, Season parentSeason, bool includeMissingEpisodes, bool includeVirtualUnairedEpisodes)