Added some additional logging to Updater to help track down a UnauthorizedAccessException during update.

This commit is contained in:
Mark McDowall 2011-11-18 22:49:12 -08:00
parent b7e0499691
commit ce73b45814
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using NLog;
@ -77,6 +78,12 @@ namespace NzbDrone.Update.Providers
catch (Exception e)
{
RollBack(targetFolder);
foreach(var key in e.Data.Keys)
{
logger.Trace("Key: {0}, Value: {1}", key, e.Data[key]);
}
logger.FatalException("Failed to copy upgrade package to target folder.", e);
}
finally