Skip to content

Commit

Permalink
添加打印错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jan 3, 2024
1 parent f5ca202 commit cb12d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions open.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package data

import (
"fmt"
"github.com/farseer-go/fs/container"
"github.com/farseer-go/fs/flog"
"github.com/farseer-go/fs/trace"
Expand Down Expand Up @@ -41,6 +42,9 @@ func open(dbConfig *dbConfig) (*gorm.DB, error) {
},
),
})
if err != nil {
fmt.Printf(dbConfig.ConnectionString)
}
defer traceDatabase.End(err)
_ = gormDB.Use(&TracePlugin{traceManager: traceManager})
if err != nil {
Expand Down

0 comments on commit cb12d75

Please sign in to comment.