🎨 logging

This commit is contained in:
Liang Ding 2022-07-01 09:16:03 +08:00
parent c05fdfa2ff
commit 98762a6be5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -153,9 +153,11 @@ func SyncData(boot, exit, byHand bool) {
// 创建数据快照 https://github.com/siyuan-note/siyuan/issues/5161
indexRepoBeforeCloudSync()
// 同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5142
if syncRepoErr := syncRepo(); nil != syncRepoErr {
util.LogErrorf("sync repo failed: %s", syncRepoErr)
if !boot && !exit && byHand {
// 同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5142
if syncRepoErr := syncRepo(); nil != syncRepoErr {
util.LogErrorf("sync repo failed: %s", syncRepoErr)
}
}
// 获取工作空间数据配置(数据版本)