From 21b9cf5b2daaefc7089828fdd5b3c0503d257e6b Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 1 Jun 2025 13:03:03 -0600 Subject: [PATCH] Remove logs that aren't helpful for prod --- module/Apps/TableCreator.mjs | 1 - module/Apps/TableManager.mjs | 1 - module/utils/databases/Memory.mjs | 2 -- module/utils/privacy.mjs | 1 - 4 files changed, 5 deletions(-) diff --git a/module/Apps/TableCreator.mjs b/module/Apps/TableCreator.mjs index 4512ad3..9619af2 100644 --- a/module/Apps/TableCreator.mjs +++ b/module/Apps/TableCreator.mjs @@ -104,7 +104,6 @@ export class TableCreator extends HandlebarsApplicationMixin(ApplicationV2) { return; }; - Logger.log(`updating ${binding} value to ${target.value}`); this[binding] = target.value; this.render(); }; diff --git a/module/Apps/TableManager.mjs b/module/Apps/TableManager.mjs index 1bb6726..f413805 100644 --- a/module/Apps/TableManager.mjs +++ b/module/Apps/TableManager.mjs @@ -253,7 +253,6 @@ export class TableManager extends HandlebarsApplicationMixin(ApplicationV2) { */ static async #deleteTable() { const table = await CONFIG.stats.db.getTable(this.activeTableID); - Logger.debug({ table }); if (!table) { ui.notifications.error( `You must select a table before you can delete it`, diff --git a/module/utils/databases/Memory.mjs b/module/utils/databases/Memory.mjs index 8dba510..b32555a 100644 --- a/module/utils/databases/Memory.mjs +++ b/module/utils/databases/Memory.mjs @@ -1,7 +1,6 @@ import { filterPrivateRows, PrivacyMode } from "../privacy.mjs"; import { createDiceTable } from "./utils.mjs"; import { Database } from "./Database.mjs"; -import { Logger } from "../Logger.mjs"; import { validateBucketConfig } from "../buckets.mjs"; const { deleteProperty, diffObject, expandObject, mergeObject, randomID } = foundry.utils; @@ -130,7 +129,6 @@ export class MemoryDatabase extends Database { row._id ||= randomID(); row.timestamp = new Date().toISOString(); - Logger.debug(`Adding row:`, row); this.#rows[userID][table].push(row); if (rerender) { this.render({ userUpdated: userID }); diff --git a/module/utils/privacy.mjs b/module/utils/privacy.mjs index 20ed3ff..f04a885 100644 --- a/module/utils/privacy.mjs +++ b/module/utils/privacy.mjs @@ -31,7 +31,6 @@ export function determinePrivacyFromRollMode(rollMode) { * @returns The filtered rows */ export function filterPrivateRows(rows, userID, privacies) { - console.log({rows, userID, privacies}); const filtered = []; const isMe = userID === game.user.id;