info log on scrobble success

This commit is contained in:
simojenki
2021-03-17 19:15:07 +11:00
parent b89240a4db
commit 852cc34a43

View File

@@ -139,9 +139,10 @@ function server(
.login(authToken)
.then((it) =>
it.scrobble(id).then((scrobbleSuccess) => {
if(!scrobbleSuccess) {
logger.warn("Failed to scrobble....")
}
if(scrobbleSuccess)
logger.info(`Scrobbled ${id}`)
else
logger.warn(`Failed to scrobble ${id}....`)
return it;
})
)