Return without info logging if failed to close database.

This commit is contained in:
singlemancombat
2020-04-01 00:48:51 -07:00
parent b6e93e780a
commit 53c6f25c03
+1
View File
@@ -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")
}