Skip to content

Commit 1fc086b

Browse files
committed
Remove logging from CSV writing process
This commit removes logging statements that output column headers and values during the CSV writing process. The final logging of the writer's output and the return statement for the writer's string representation have also been deleted, resulting in a cleaner output without logging details. #13
1 parent 93af7da commit 1fc086b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/CsvPlugin.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal CsvPlugin(IGuidProvider guidProvider, IReflectionGuard reflectionGuard)
3232
Name = "Csv",
3333
CompanyName = "FlowSynx",
3434
Description = Resources.PluginDescription,
35-
Version = new Version(1, 2, 1),
35+
Version = new Version(1, 2, 2),
3636
Category = PluginCategory.Data,
3737
Authors = new List<string> { "FlowSynx" },
3838
Copyright = "© FlowSynx. All rights reserved.",
@@ -212,7 +212,6 @@ private async Task<string> ToCsvStringAsync(IEnumerable<ExpandoObject> records,
212212
foreach (var header in headerRow)
213213
{
214214
csvWriter.WriteField(header);
215-
_logger?.LogInfo($"Column: '{header}'");
216215
}
217216
await csvWriter.NextRecordAsync();
218217

@@ -223,16 +222,12 @@ private async Task<string> ToCsvStringAsync(IEnumerable<ExpandoObject> records,
223222
foreach (var value in values.Values)
224223
{
225224
csvWriter.WriteField(value);
226-
_logger?.LogInfo($"Value: '{value}'");
227225
}
228226
await csvWriter.NextRecordAsync();
229227
}
230228
}
231229

232230
await csvWriter.FlushAsync();
233-
234-
_logger?.LogInfo(writer.ToString());
235-
236231
return writer.ToString();
237232
}
238233
}

0 commit comments

Comments
 (0)