From ce73b45814547d834f0e7ff7e1f509997bdb8c38 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 18 Nov 2011 22:49:12 -0800 Subject: [PATCH] Added some additional logging to Updater to help track down a UnauthorizedAccessException during update. --- NzbDrone.Update/Providers/UpdateProvider.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NzbDrone.Update/Providers/UpdateProvider.cs b/NzbDrone.Update/Providers/UpdateProvider.cs index 969879d77..75d8f6ffb 100644 --- a/NzbDrone.Update/Providers/UpdateProvider.cs +++ b/NzbDrone.Update/Providers/UpdateProvider.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.IO; using System.Linq; using NLog; @@ -77,6 +78,12 @@ public virtual void Start(string targetFolder) 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