IO-3096-GlobalNotifications - Add in a function to exclude extra logging from production

This commit is contained in:
Dave Richer
2025-03-13 13:56:30 -04:00
parent 7a5ac739ab
commit 5f0b63a192
4 changed files with 58 additions and 47 deletions

View File

@@ -0,0 +1,10 @@
const logger = require("./logger");
const devDebugLogger = (message, meta) => {
if (process.env?.NODE_ENV === "production") {
return;
}
logger.logger.debug(message, meta);
};
module.exports = devDebugLogger;