瀏覽代碼

Merge pull request #467 from mautrix/sumner/bri-2852

historysync: add logging of progress
Sumner Evans 3 年之前
父節點
當前提交
7742ccb8ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      historysync.go

+ 1 - 1
historysync.go

@@ -190,7 +190,7 @@ func (user *User) handleHistorySync(reCheckQueue chan bool, evt *waProto.History
 	if evt == nil || evt.SyncType == nil || evt.GetSyncType() == waProto.HistorySync_INITIAL_STATUS_V3 || evt.GetSyncType() == waProto.HistorySync_PUSH_NAME {
 		return
 	}
-	description := fmt.Sprintf("type %s, %d conversations, chunk order %d", evt.GetSyncType(), len(evt.GetConversations()), evt.GetChunkOrder())
+	description := fmt.Sprintf("type %s, %d conversations, chunk order %d, progress: %d", evt.GetSyncType(), len(evt.GetConversations()), evt.GetChunkOrder(), evt.GetProgress())
 	user.log.Infoln("Storing history sync with", description)
 
 	for _, conv := range evt.GetConversations() {