From 75b92f79f7cbb6cd8120bf7ab384d9fc888d2609 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 19:22:06 +0000 Subject: [PATCH 1/3] Initial plan From 416008c6fcceb1f1c6ed7eba9dd8591d136f73e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 19:24:44 +0000 Subject: [PATCH 2/3] Use syncSuccessful variable for logging sync outcome Co-authored-by: mrdevrobot <12503462+mrdevrobot@users.noreply.github.com> --- src/EntglDb.Network/SyncOrchestrator.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/EntglDb.Network/SyncOrchestrator.cs b/src/EntglDb.Network/SyncOrchestrator.cs index 485cc8d..1ff5abd 100644 --- a/src/EntglDb.Network/SyncOrchestrator.cs +++ b/src/EntglDb.Network/SyncOrchestrator.cs @@ -391,6 +391,16 @@ private async Task TrySyncWithPeer(PeerNode peer, CancellationToken token) try { removedClient.Dispose(); } catch { /* Ignore disposal errors */ } } } + + // Log sync outcome + if (syncSuccessful) + { + _logger.LogInformation("Sync with {NodeId} completed successfully.", peer.NodeId); + } + else + { + _logger.LogDebug("Sync with {NodeId} did not complete successfully.", peer.NodeId); + } } } From 69ba728897cab1cb1211734c73f6ad389bbaed13 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 26 Jan 2026 19:25:45 +0000 Subject: [PATCH 3/3] Simplify sync outcome logging to avoid redundancy Co-authored-by: mrdevrobot <12503462+mrdevrobot@users.noreply.github.com> --- src/EntglDb.Network/SyncOrchestrator.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/EntglDb.Network/SyncOrchestrator.cs b/src/EntglDb.Network/SyncOrchestrator.cs index 1ff5abd..3827799 100644 --- a/src/EntglDb.Network/SyncOrchestrator.cs +++ b/src/EntglDb.Network/SyncOrchestrator.cs @@ -392,15 +392,11 @@ private async Task TrySyncWithPeer(PeerNode peer, CancellationToken token) } } - // Log sync outcome + // Log successful sync outcome (failures are already logged in catch blocks) if (syncSuccessful) { _logger.LogInformation("Sync with {NodeId} completed successfully.", peer.NodeId); } - else - { - _logger.LogDebug("Sync with {NodeId} did not complete successfully.", peer.NodeId); - } } }