More logging in the Importer

This commit is contained in:
Deluan 2020-01-11 13:58:25 -05:00 committed by Deluan Quintão
parent 48b465f2fb
commit 28ee1f195c
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
/sonic-server
/iTunes*.xml
devDb
devDb*
/tmp
vendor/*/
wiki

View File

@ -89,7 +89,7 @@ func (i *Importer) scan() {
return
}
log.Debug("Found", "tracks", total,
log.Debug("Totals informed by the scanner", "tracks", total,
"songs", len(i.scanner.MediaFiles()),
"albums", len(i.scanner.Albums()),
"artists", len(i.scanner.Artists()),
@ -127,9 +127,13 @@ func (i *Importer) importLibrary() (err error) {
log.Debug("Saving updated data")
mfs, mfu := i.importMediaFiles()
log.Debug("Imported media files", "total", len(mfs), "updated", mfu)
als, alu := i.importAlbums()
log.Debug("Imported albums", "total", len(als), "updated", alu)
ars := i.importArtists()
log.Debug("Imported artists", "total", len(ars))
pls := i.importPlaylists()
log.Debug("Imported playlists", "total", len(pls))
i.importArtistIndex()
log.Debug("Purging old data")