added exception logging to Tasks.

This commit is contained in:
kay.one 2013-07-11 23:10:34 -07:00
parent 508b087c46
commit d607b831c9
7 changed files with 39 additions and 6 deletions

View file

@ -9,6 +9,7 @@ using NzbDrone.Core.Indexers;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Tv;
using System.Linq;
using NzbDrone.Common.TPL;
namespace NzbDrone.Core.IndexerSearch
{
@ -158,7 +159,7 @@ namespace NzbDrone.Core.IndexerSearch
{
_logger.ErrorException("Error while searching for " + criteriaBase, e);
}
}));
}).LogExceptions());
}
Task.WaitAll(taskList.ToArray());