Skip to content

Commit

Permalink
Return without info logging if failed to close database.
Browse files Browse the repository at this point in the history
  • Loading branch information
singlemancombat authored and singlemancombat committed Apr 1, 2020
1 parent b6e93e7 commit 53c6f25
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 53c6f25

Please sign in to comment.