Skip to content

Commit 0404aee

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 5ff3cfa commit 0404aee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

KustoSchemaTools/Parser/KustoWriter/DefaultDatabaseWriter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ internal virtual async Task<List<ScriptExecuteCommandResult>> UpdatePrimary(Data
7474
Console.WriteLine($"Database update complete: Successfully applied {allResults.Count(r => r.Result != "Failed")} out of {allResults.Count} changes to {targetDb.Name} after {iterationCount} iterations.");
7575
foreach (var result in allResults)
7676
{
77-
Console.WriteLine($"{result.CommandType} ({result.OperationId}): {result.Result} => {result.Reason} ({result.CommandText})");
77+
logger.LogInformation($"Successfully applied {allResults.Count(r => r.Result != "Failed")} out of {allResults.Count} changes to {targetDb.Name}");
78+
foreach (var result in allResults)
79+
{
80+
logger.LogInformation($"{result.CommandType} ({result.OperationId}): {result.Result} => {result.Reason} ({result.CommandText})");
7881
}
7982
Console.WriteLine("---------------------------------------------------------------------------");
8083

0 commit comments

Comments
 (0)