Skip to content

Commit

Permalink
add DB connect success error
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeyu0806 committed Jul 21, 2021
1 parent a18b963 commit 3a6b034
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/db.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package infrastructure

import (
"log"
"os"

"gorm.io/driver/mysql"
Expand All @@ -19,6 +20,8 @@ func GetDB() (*gorm.DB, error) {

if err != nil {
panic(err.Error())
} else {
log.Print("sucess DB connect")
}

return db, err
Expand Down

0 comments on commit 3a6b034

Please sign in to comment.