mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
feat: better albums.onHold debugging messages
This commit is contained in:
parent
c47d3f5437
commit
518b29c8df
@ -73,6 +73,10 @@ self.getUniqueAlbumIdentifier = async res => {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (utils.devmode) {
|
||||||
|
logger.debug(`albums.onHold: ${utils.inspect(self.onHold)}`)
|
||||||
|
}
|
||||||
|
|
||||||
// Unhold identifier once the Response has been sent
|
// Unhold identifier once the Response has been sent
|
||||||
if (res) {
|
if (res) {
|
||||||
// Keep in an array for future-proofing
|
// Keep in an array for future-proofing
|
||||||
@ -95,7 +99,10 @@ self.unholdAlbumIdentifiers = res => {
|
|||||||
|
|
||||||
for (const identifier of res.locals.identifiers) {
|
for (const identifier of res.locals.identifiers) {
|
||||||
self.onHold.delete(identifier)
|
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
|
delete res.locals.identifiers
|
||||||
|
Loading…
Reference in New Issue
Block a user