update log
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user