From 871496ad9ab4c1093d56542243c76410b779a790 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 20 Jul 2022 23:15:40 +0800 Subject: [PATCH] :art: sync debug logging --- kernel/model/repository.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index a85c573b0..c7964f8bf 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -496,6 +496,8 @@ func syncRepo(boot, exit, byHand bool) { msg := fmt.Sprintf(Conf.Language(150), trafficStat.UploadFileCount, trafficStat.DownloadFileCount, trafficStat.UploadChunkCount, trafficStat.DownloadChunkCount, humanize.Bytes(uint64(trafficStat.UploadBytes)), humanize.Bytes(uint64(trafficStat.DownloadBytes))) Conf.Sync.Stat = msg syncDownloadErrCount = 0 + logging.LogInfof("synced data repo [uploadFileCount=%d, downloadFileCount=%d, uploadChunkCount=%d, downloadChunkCount=%d, uploadBytes=%d, downloadBytes=%d] in [%.2fs]", + trafficStat.UploadFileCount, trafficStat.DownloadFileCount, trafficStat.UploadChunkCount, trafficStat.DownloadChunkCount, trafficStat.UploadBytes, trafficStat.DownloadBytes, elapsed.Seconds()) if 1 > len(mergeResult.Upserts) && 1 > len(mergeResult.Removes) { // 没有数据变更 syncSameCount++