1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

feat: 增加启动日志

This commit is contained in:
zhengkunwang223 2023-03-01 18:17:31 +08:00 committed by zhengkunwang223
parent c5dfb894ca
commit f7bd16076e
4 changed files with 4 additions and 1 deletions

View File

@ -51,4 +51,5 @@ func Init() {
}
global.CACHE = badger_db.NewCacheDB(cache)
global.LOG.Info("init cache successfully")
}

View File

@ -28,4 +28,5 @@ func Init() {
panic(err)
}
global.DB = db
global.LOG.Info("init db successfully")
}

View File

@ -25,5 +25,5 @@ func Init() {
global.LOG.Error(err)
panic(err)
}
global.LOG.Info("Migration did run successfully")
global.LOG.Info("Migration run successfully")
}

View File

@ -7,4 +7,5 @@ import (
func Init() {
global.SESSION = psession.NewPSession(global.CACHE)
global.LOG.Info("init session successfully")
}