mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Added some additional logging to Updater to help track down a UnauthorizedAccessException during update.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NLog;
|
using NLog;
|
||||||
@@ -77,6 +78,12 @@ namespace NzbDrone.Update.Providers
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
RollBack(targetFolder);
|
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);
|
logger.FatalException("Failed to copy upgrade package to target folder.", e);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
Reference in New Issue
Block a user