瀏覽代碼

:art: Show changelog after upgrading https://github.com/siyuan-note/siyuan/issues/7902

Liang Ding 2 年之前
父節點
當前提交
a86c4d346b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      kernel/api/system.go

+ 1 - 2
kernel/api/system.go

@@ -38,7 +38,6 @@ func getChangelog(c *gin.Context) {
 	defer c.JSON(http.StatusOK, ret)
 	defer c.JSON(http.StatusOK, ret)
 
 
 	data := map[string]interface{}{"show": false, "html": ""}
 	data := map[string]interface{}{"show": false, "html": ""}
-
 	ret.Data = data
 	ret.Data = data
 
 
 	changelogsDir := filepath.Join(util.WorkingDir, "changelogs")
 	changelogsDir := filepath.Join(util.WorkingDir, "changelogs")
@@ -54,7 +53,7 @@ func getChangelog(c *gin.Context) {
 	if !gulu.File.IsExist(changelogPath) {
 	if !gulu.File.IsExist(changelogPath) {
 		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
 		changelogPath = filepath.Join(changelogsDir, "v"+util.Ver+".md")
 		if !gulu.File.IsExist(changelogPath) {
 		if !gulu.File.IsExist(changelogPath) {
-			logging.LogWarnf("changelog not found: %s", changelogPath)
+			logging.LogErrorf("changelog not found: %s", changelogPath)
 			return
 			return
 		}
 		}
 	}
 	}