Rename flag

This commit is contained in:
Bartłomiej Dach 2023-05-06 19:38:41 +02:00
parent a56a5d563c
commit bb17b684b0
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ public override void ExportToStream(TModel model, Stream outputStream, ProgressN
{
int i = 0;
int fileCount = model.Files.Count();
bool fileMissing = false;
bool anyFileMissing = false;
foreach (var file in model.Files)
{
@ -44,7 +44,7 @@ public override void ExportToStream(TModel model, Stream outputStream, ProgressN
if (stream == null)
{
Logger.Log($"File {file.Filename} is missing in local storage and will not be included in the export", LoggingTarget.Database);
fileMissing = true;
anyFileMissing = true;
continue;
}
@ -59,7 +59,7 @@ public override void ExportToStream(TModel model, Stream outputStream, ProgressN
i++;
}
if (fileMissing)
if (anyFileMissing)
{
Logger.Log("Some files are missing in local storage and will not be included in the export", LoggingTarget.Database, LogLevel.Error);
}