add log db

This commit is contained in:
liuzhifei
2024-08-13 10:28:35 +08:00
parent a7c14a26cc
commit 566e26a8c6

View File

@@ -42,6 +42,11 @@ func main() {
if err != nil {
common.FatalLog("failed to initialize database: " + err.Error())
}
// Initialize SQL Database
err = model.InitLogDB()
if err != nil {
common.FatalLog("failed to initialize database: " + err.Error())
}
defer func() {
err := model.CloseDB()
if err != nil {