Update system log

This commit is contained in:
JustSong
2023-04-22 22:15:48 +08:00
parent 6164829239
commit 5e8c22fbf6
2 changed files with 13 additions and 34 deletions

View File

@@ -24,7 +24,7 @@ var indexPage []byte
func main() {
common.SetupGinLog()
common.SysLog("system started")
common.SysLog("One API " + common.Version + " started")
if os.Getenv("GIN_MODE") != "debug" {
gin.SetMode(gin.ReleaseMode)
}