优化性能
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user