Fixed: Ignore Priority monitor errors on mono

pull/3113/head
Mark McDowall 11 years ago
parent 1ade005a73
commit 42101d302b

@ -55,7 +55,7 @@ namespace NzbDrone.Core.Update
_diskProvider.DeleteFolder(updateSandboxFolder, true); _diskProvider.DeleteFolder(updateSandboxFolder, true);
} }
_logger.ProgressInfo("Downloading update {0} [{1}]", updatePackage.Version, updatePackage.Branch); _logger.ProgressInfo("Downloading update {0}", updatePackage.Version);
_logger.Debug("Downloading update package from [{0}] to [{1}]", updatePackage.Url, packageDestination); _logger.Debug("Downloading update package from [{0}] to [{1}]", updatePackage.Url, packageDestination);
_httpProvider.DownloadFile(updatePackage.Url, packageDestination); _httpProvider.DownloadFile(updatePackage.Url, packageDestination);

@ -2,6 +2,7 @@
using System.Diagnostics; using System.Diagnostics;
using System.Threading; using System.Threading;
using NLog; using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Processes; using NzbDrone.Common.Processes;
namespace NzbDrone.Host namespace NzbDrone.Host
@ -35,9 +36,17 @@ namespace NzbDrone.Host
} }
} }
catch (Exception e) catch (Exception e)
{
if (OsInfo.IsMono)
{
_logger.TraceException("Unable to verify priority", e);
}
else
{ {
_logger.WarnException("Unable to verify priority", e); _logger.WarnException("Unable to verify priority", e);
} }
} }
} }
}
} }

@ -92,7 +92,6 @@ define(
initialize: function (options) { initialize: function (options) {
if (!options.episodeCollection) { if (!options.episodeCollection) {
throw 'episodeCollection is needed'; throw 'episodeCollection is needed';
} }

Loading…
Cancel
Save