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
+1 -1
View File
@@ -1,6 +1,6 @@
/sonic-server /sonic-server
/iTunes*.xml /iTunes*.xml
devDb devDb*
/tmp /tmp
vendor/*/ vendor/*/
wiki wiki
+5 -1
View File
@@ -89,7 +89,7 @@ func (i *Importer) scan() {
return return
} }
log.Debug("Found", "tracks", total, log.Debug("Totals informed by the scanner", "tracks", total,
"songs", len(i.scanner.MediaFiles()), "songs", len(i.scanner.MediaFiles()),
"albums", len(i.scanner.Albums()), "albums", len(i.scanner.Albums()),
"artists", len(i.scanner.Artists()), "artists", len(i.scanner.Artists()),
@@ -127,9 +127,13 @@ func (i *Importer) importLibrary() (err error) {
log.Debug("Saving updated data") log.Debug("Saving updated data")
mfs, mfu := i.importMediaFiles() mfs, mfu := i.importMediaFiles()
log.Debug("Imported media files", "total", len(mfs), "updated", mfu)
als, alu := i.importAlbums() als, alu := i.importAlbums()
log.Debug("Imported albums", "total", len(als), "updated", alu)
ars := i.importArtists() ars := i.importArtists()
log.Debug("Imported artists", "total", len(ars))
pls := i.importPlaylists() pls := i.importPlaylists()
log.Debug("Imported playlists", "total", len(pls))
i.importArtistIndex() i.importArtistIndex()
log.Debug("Purging old data") log.Debug("Purging old data")