log connection
This commit is contained in:
parent
a66e97fb07
commit
84f7b3fb7e
|
|
@ -55,6 +55,7 @@ func init() {
|
|||
|
||||
func main() {
|
||||
|
||||
fmt.Printf("DB: %s", mysqlDSN)
|
||||
// Initialize MySQL database connection
|
||||
db, err := gorm.Open(mysql.Open(mysqlDSN), &gorm.Config{
|
||||
Logger: logger.Default.LogMode(logger.Info),
|
||||
|
|
|
|||
Loading…
Reference in New Issue