feat: better albums.onHold debugging messages

This commit is contained in:
Bobby 2022-09-24 06:35:41 +07:00
parent c47d3f5437
commit 518b29c8df
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -73,6 +73,10 @@ self.getUniqueAlbumIdentifier = async res => {
continue
}
if (utils.devmode) {
logger.debug(`albums.onHold: ${utils.inspect(self.onHold)}`)
}
// Unhold identifier once the Response has been sent
if (res) {
// Keep in an array for future-proofing
@ -95,7 +99,10 @@ self.unholdAlbumIdentifiers = res => {
for (const identifier of res.locals.identifiers) {
self.onHold.delete(identifier)
logger.debug(`Unheld identifier ${identifier}.`)
if (utils.devmode) {
logger.debug(`albums.onHold: ${utils.inspect(self.onHold)} -> ${utils.inspect(identifier)}`)
}
}
delete res.locals.identifiers