chore(server): add logs to begin/end transaction

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-02-24 19:13:42 -05:00
parent 15a3d2ca66
commit 5fa19f9cfa
8 changed files with 29 additions and 15 deletions
+2 -2
View File
@@ -390,7 +390,7 @@ func (p *phaseFolders) persistChanges(entry *folderEntry) (*folderEntry, error)
}
}
return nil
})
}, "scanner: persist changes")
if err != nil {
log.Error(p.ctx, "Scanner: Error persisting changes to DB", "folder", entry.path, err)
}
@@ -464,7 +464,7 @@ func (p *phaseFolders) finalize(err error) error {
}
}
return nil
})
}, "scanner: finalize phaseFolders")
return errors.Join(err, errF)
}