1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-17 00:07:54 +02:00

Chore: Standardize error logging & formatting

This commit is contained in:
Ralph Slooten
2024-01-01 15:25:38 +13:00
parent 4568b95bd6
commit 83e291208a
7 changed files with 13 additions and 18 deletions

View File

@ -142,9 +142,9 @@ func dbCron() {
err = tx.Commit()
if err != nil {
logger.Log().Errorf(err.Error())
logger.Log().Errorf("[db] %s", err.Error())
if err := tx.Rollback(); err != nil {
logger.Log().Errorf(err.Error())
logger.Log().Errorf("[db] %s", err.Error())
}
}