fix: fix theme logging

This commit is contained in:
JustSong 2024-01-07 18:02:59 +08:00
parent 86261cc656
commit c9ebcab8b8

View File

@ -20,7 +20,7 @@ var buildFS embed.FS
func main() {
common.SetupLogger()
common.SysLog(fmt.Sprintf("One API %s started with theme %s", common.Version, common.Theme))
common.SysLog(fmt.Sprintf("One API %s started", common.Version))
if os.Getenv("GIN_MODE") != "debug" {
gin.SetMode(gin.ReleaseMode)
}
@ -47,6 +47,7 @@ func main() {
// Initialize options
model.InitOptionMap()
common.SysLog(fmt.Sprintf("using theme %s", common.Theme))
if common.RedisEnabled {
// for compatibility with old versions
common.MemoryCacheEnabled = true