Added extra updater logging

#5208
This commit is contained in:
flightlevel
2019-05-11 13:04:07 +10:00
parent 6f65992bb5
commit 3530fa8244

View File

@@ -215,6 +215,10 @@ namespace Jackett.Updater
logger.Info("Finding files in: " + updateLocation);
var files = Directory.GetFiles(updateLocation, "*.*", SearchOption.AllDirectories).OrderBy(x => x).ToList();
logger.Info($"{files.Count()} update files found");
try
{
foreach (var file in files)
{
var fileName = Path.GetFileName(file).ToLowerInvariant();
@@ -232,6 +236,11 @@ namespace Jackett.Updater
CopyUpdateFile(options.Path, file, updateLocation, true);
}
}
}
catch (Exception ex)
{
logger.Error(ex);
}
logger.Info("File copying complete");