feat: 增加启动日志

This commit is contained in:
zhengkunwang223
2023-03-01 18:19:14 +08:00
committed by zhengkunwang223
parent c5dfb894ca
commit f7bd16076e
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -51,4 +51,5 @@ func Init() {
}
global.CACHE = badger_db.NewCacheDB(cache)
global.LOG.Info("init cache successfully")
}
+1
View File
@@ -28,4 +28,5 @@ func Init() {
panic(err)
}
global.DB = db
global.LOG.Info("init db successfully")
}
+1 -1
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")
}
+1
View File
@@ -7,4 +7,5 @@ import (
func Init() {
global.SESSION = psession.NewPSession(global.CACHE)
global.LOG.Info("init session successfully")
}