diff --git a/module/utils/Logger.mjs b/module/utils/Logger.mjs index 6460bd3..82064b4 100644 --- a/module/utils/Logger.mjs +++ b/module/utils/Logger.mjs @@ -13,6 +13,11 @@ const augmentedProps = new Set([ `timeStamp`, ]); +const happensInProd = new Set([ + `warn`, + `error`, +]); + function noop() {}; /** @type {null | boolean} */ @@ -26,7 +31,7 @@ export const Logger = new Proxy(console, { inDev = game.modules.get(__ID).flags.inDev; }; - if (!inDev) { + if (!inDev && !happensInProd.has(prop)) { return noop; };