Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2022-01-08 21:48:30 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2022-01-08 23:06:33 +0300
commit6a84e9f97202ed80678877beac369ba0cda01c90 (patch)
treedfa149b0cc478724c9bfec0557e71cb4e68a956a /Duplicati
parent82c14c5cb77166393f73e0cfcb77e075faecb8c3 (diff)
Always log filename if error occurs during retrieval.
This fixes #4658.
Diffstat (limited to 'Duplicati')
-rw-r--r--Duplicati/Library/Main/AsyncDownloader.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Duplicati/Library/Main/AsyncDownloader.cs b/Duplicati/Library/Main/AsyncDownloader.cs
index 52900326e..ea72f51cf 100644
--- a/Duplicati/Library/Main/AsyncDownloader.cs
+++ b/Duplicati/Library/Main/AsyncDownloader.cs
@@ -13,6 +13,8 @@ namespace Duplicati.Library.Main
internal class AsyncDownloader : IEnumerable<IAsyncDownloadedFile>
{
+ private static readonly string LOGTAG = Logging.Log.LogTagFromType<AsyncDownloader>();
+
private class AsyncDownloaderEnumerator : IEnumerator<IAsyncDownloadedFile>
{
private class AsyncDownloadedFile : IAsyncDownloadedFile
@@ -110,6 +112,7 @@ namespace Duplicati.Library.Main
}
catch (Exception ex)
{
+ Logging.Log.WriteErrorMessage(LOGTAG, "FailedToRetrieveFile", ex, "Failed to retrieve file {0}", m_volumes[m_index].Name);
exception = ex;
}