From afd81c965d3f2184f597e0ef183b2e74effb7e5b Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 4 Oct 2022 05:12:21 +0700 Subject: [PATCH] chore: comment out onHold debug messages seem stable enough but just comment out if needed in the future --- controllers/albumsController.js | 4 ++++ controllers/uploadController.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/controllers/albumsController.js b/controllers/albumsController.js index 7fa54d4..c55d4f1 100644 --- a/controllers/albumsController.js +++ b/controllers/albumsController.js @@ -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 diff --git a/controllers/uploadController.js b/controllers/uploadController.js index d28f9b8..af0efc4 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -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