[DEPRECATED] Go implementation of plcbundle

update sync debug info

+4 -4
+4 -4
internal/sync/syncer.go
··· 96 96 97 97 if fetchedCount > 0 { 98 98 if totalIndexTime > 10*time.Millisecond { 99 - config.Logger.Printf("[Sync] ✓ Bundle %06d | Synced: %d | Mempool: %d (+%d) | %s (index: %s)", 99 + config.Logger.Printf("[Sync] ✓ Bundle %06d | synced: %d | mempool: %d (+%d) | time: %s (index: %s)", 100 100 currentBundle, fetchedCount, mempoolAfter, addedOps, 101 101 duration.Round(time.Millisecond), totalIndexTime.Round(time.Millisecond)) 102 102 } else { 103 - config.Logger.Printf("[Sync] ✓ Bundle %06d | Synced: %d | Mempool: %d (+%d) | %s", 103 + config.Logger.Printf("[Sync] ✓ Bundle %06d | synced: %d | mempool: %d (+%d) | time: %s", 104 104 currentBundle, fetchedCount, mempoolAfter, addedOps, duration.Round(time.Millisecond)) 105 105 } 106 106 } else if addedOps > 0 { 107 107 // No bundles but added to mempool 108 - config.Logger.Printf("[Sync] ✓ Bundle %06d | Mempool: %d (+%d) | %s", 108 + config.Logger.Printf("[Sync] ✓ Bundle %06d | mempool: %d (+%d) | time: %s", 109 109 currentBundle, mempoolAfter, addedOps, duration.Round(time.Millisecond)) 110 110 } else { 111 111 // Already up to date 112 - config.Logger.Printf("[Sync] ✓ Bundle %06d | Up to date | %s", 112 + config.Logger.Printf("[Sync] ✓ Bundle %06d | up to date | time: %s", 113 113 currentBundle, duration.Round(time.Millisecond)) 114 114 } 115 115 }