Don't show unnecessary error messages when run tests

This commit is contained in:
Jinzhu 2013-12-23 13:34:07 +08:00
parent 690cb1430c
commit 2d52d6d51b
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func init() {
db, err = Open("postgres", "user=gorm dbname=gorm sslmode=disable") db, err = Open("postgres", "user=gorm dbname=gorm sslmode=disable")
} }
// db.SetLogger(log.New(os.Stdout, "\r\n", 0)) // db.SetLogger(log.New(os.Stdout, "\r\n", 0))
// db.LogMode(true) db.LogMode(false)
if err != nil { if err != nil {
panic(fmt.Sprintf("No error should happen when connect database, but got %+v", err)) panic(fmt.Sprintf("No error should happen when connect database, but got %+v", err))
} }