mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +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
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user