优化性能

This commit is contained in:
2024-02-08 17:38:23 +08:00
parent 20cc78c667
commit 8db7c71170
10 changed files with 67 additions and 58 deletions

View File

@@ -24,7 +24,7 @@ public class ErrorRecorder
Directory.CreateDirectory(outputDir);
var content = $"""
### {exception.Message}
{record.RawField}
{string.Join(',', record.Fields)}
""";
var path = Path.Combine(outputDir, $"{record.TableName}.errlog");
await File.AppendAllTextAsync(path, content);
@@ -57,7 +57,7 @@ public class ErrorRecorder
var content =
$"""
### {exception.Message}
{record.RawField}
{string.Join(',', record.Fields)}
""";
await writer.WriteLineAsync(content);
if (token.IsCancellationRequested)