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

View file

@ -113,7 +113,7 @@ func (p *phaseRefreshAlbums) refreshAlbum(album *model.Album) (*model.Album, err
p.refreshed.Add(1)
p.state.changesDetected.Store(true)
return nil
})
}, "scanner: refresh album")
if err != nil {
return nil, err
}
@ -153,5 +153,5 @@ func (p *phaseRefreshAlbums) finalize(err error) error {
log.Debug(p.ctx, "Scanner: Refreshed artist annotations", "artists", cnt, "elapsed", time.Since(start))
p.state.changesDetected.Store(true)
return nil
})
}, "scanner: finalize phaseRefreshAlbums")
}