Skip to content

Commit

Permalink
Merge pull request #16 from singlemancombat/master
Browse files Browse the repository at this point in the history
Return without info logging if failed to close database.
  • Loading branch information
geektutu authored Apr 1, 2020
2 parents b6e93e7 + 53c6f25 commit 377fde6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gee-orm/day7-migrate/geeorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func NewEngine(driver, source string) (e *Engine, err error) {
func (engine *Engine) Close() {
if err := engine.db.Close(); err != nil {
log.Error("Failed to close database")
return
}
log.Info("Close database success")
}
Expand Down

0 comments on commit 377fde6

Please sign in to comment.