An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve sync logging
Daniel7979054595cb
diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 26ace64d3a..be2a14b032 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -583,6 +583,7 @@ func formatRepoErrorMsg(err error) string {} else if errors.Is(err, cloud.ErrCloudServiceUnavailable) {msg = Conf.language(219)} else {+ logging.LogErrorf("sync failed caused by network: %s", msg)msgLowerCase := strings.ToLower(msg)if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {msg = Conf.Language(33)@@ -595,7 +596,6 @@ func formatRepoErrorMsg(err error) string {} else if strings.Contains(msgLowerCase, "net/http: request canceled while waiting for connection") || strings.Contains(msgLowerCase, "exceeded while awaiting") || strings.Contains(msgLowerCase, "context deadline exceeded") || strings.Contains(msgLowerCase, "timeout") || strings.Contains(msgLowerCase, "context cancellation while reading body") {msg = Conf.Language(24)} else if strings.Contains(msgLowerCase, "connection was") || strings.Contains(msgLowerCase, "reset by peer") || strings.Contains(msgLowerCase, "refused") || strings.Contains(msgLowerCase, "socket") || strings.Contains(msgLowerCase, "closed idle connection") || strings.Contains(msgLowerCase, "eof") {- logging.LogErrorf("sync failed caused by network: %s", msg)msg = Conf.Language(28)}}