update log

This commit is contained in:
zaccaria.majid
2023-09-22 16:06:47 +02:00
parent 5d090083da
commit 98bbb01903
+7
View File
@@ -696,6 +696,8 @@ namespace SMGen.Data.Services
var lines = File.ReadLines(filePath);
var fileTxt = File.ReadAllText(filePath);
string errMsg = "";
int n = 0;
Log.Debug($"{n++:00}");
foreach (var line in lines)
{
if (line != "" && line.Contains(":"))
@@ -737,6 +739,7 @@ namespace SMGen.Data.Services
}
}
}
Log.Debug($"{n++:00}");
if (file.errorMsgs.Count() == 0)
{
var fileName = $"{file.origFileName.Split(".")[0]}.rul";
@@ -747,9 +750,13 @@ namespace SMGen.Data.Services
{
sw.Write(fileTxt);
}
Log.Debug($"T{n++:00}");
}
else
{
Log.Debug($"F{n++:00}");
await FileUpdate(file.origFileName, file);
}