Skip to content

Commit

Permalink
Don't show unnecessary error messages when run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Dec 23, 2013
1 parent 690cb14 commit 2d52d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gorm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func init() {
db, err = Open("postgres", "user=gorm dbname=gorm sslmode=disable")
}
// db.SetLogger(log.New(os.Stdout, "\r\n", 0))
// db.LogMode(true)
db.LogMode(false)
if err != nil {
panic(fmt.Sprintf("No error should happen when connect database, but got %+v", err))
}
Expand Down

0 comments on commit 2d52d6d

Please sign in to comment.