chore: comment out onHold debug messages

seem stable enough
but just comment out if needed in the future
This commit is contained in:
Bobby 2022-10-04 05:12:21 +07:00
parent e4a3447a5e
commit afd81c965d
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 8 additions and 0 deletions

View File

@ -73,9 +73,11 @@ 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) {
@ -100,9 +102,11 @@ self.unholdAlbumIdentifiers = res => {
for (const identifier of res.locals.identifiers) {
self.onHold.delete(identifier)
/*
if (utils.devmode) {
logger.debug(`albums.onHold: ${utils.inspect(self.onHold)} -> ${utils.inspect(identifier)}`)
}
*/
}
delete res.locals.identifiers

View File

@ -188,9 +188,11 @@ self.getUniqueUploadIdentifier = async (length, extension = '', res) => {
continue
}
/*
if (utils.devmode) {
logger.debug(`upload.onHold: ${utils.inspect(self.onHold)}`)
}
*/
// Unhold identifier once the Response has been sent
if (res) {
@ -226,9 +228,11 @@ self.unholdUploadIdentifiers = res => {
for (const identifier of res.locals.identifiers) {
self.onHold.delete(identifier)
/*
if (utils.devmode) {
logger.debug(`upload.onHold: ${utils.inspect(self.onHold)} -> ${utils.inspect(identifier)}`)
}
*/
}
delete res.locals.identifiers