Remove logs that aren't helpful for prod
This commit is contained in:
parent
c6161dd312
commit
21b9cf5b2d
4 changed files with 0 additions and 5 deletions
|
|
@ -104,7 +104,6 @@ export class TableCreator extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
Logger.log(`updating ${binding} value to ${target.value}`);
|
|
||||||
this[binding] = target.value;
|
this[binding] = target.value;
|
||||||
this.render();
|
this.render();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,6 @@ export class TableManager extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
*/
|
*/
|
||||||
static async #deleteTable() {
|
static async #deleteTable() {
|
||||||
const table = await CONFIG.stats.db.getTable(this.activeTableID);
|
const table = await CONFIG.stats.db.getTable(this.activeTableID);
|
||||||
Logger.debug({ table });
|
|
||||||
if (!table) {
|
if (!table) {
|
||||||
ui.notifications.error(
|
ui.notifications.error(
|
||||||
`You must select a table before you can delete it`,
|
`You must select a table before you can delete it`,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { filterPrivateRows, PrivacyMode } from "../privacy.mjs";
|
import { filterPrivateRows, PrivacyMode } from "../privacy.mjs";
|
||||||
import { createDiceTable } from "./utils.mjs";
|
import { createDiceTable } from "./utils.mjs";
|
||||||
import { Database } from "./Database.mjs";
|
import { Database } from "./Database.mjs";
|
||||||
import { Logger } from "../Logger.mjs";
|
|
||||||
import { validateBucketConfig } from "../buckets.mjs";
|
import { validateBucketConfig } from "../buckets.mjs";
|
||||||
|
|
||||||
const { deleteProperty, diffObject, expandObject, mergeObject, randomID } = foundry.utils;
|
const { deleteProperty, diffObject, expandObject, mergeObject, randomID } = foundry.utils;
|
||||||
|
|
@ -130,7 +129,6 @@ export class MemoryDatabase extends Database {
|
||||||
row._id ||= randomID();
|
row._id ||= randomID();
|
||||||
row.timestamp = new Date().toISOString();
|
row.timestamp = new Date().toISOString();
|
||||||
|
|
||||||
Logger.debug(`Adding row:`, row);
|
|
||||||
this.#rows[userID][table].push(row);
|
this.#rows[userID][table].push(row);
|
||||||
if (rerender) {
|
if (rerender) {
|
||||||
this.render({ userUpdated: userID });
|
this.render({ userUpdated: userID });
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ export function determinePrivacyFromRollMode(rollMode) {
|
||||||
* @returns The filtered rows
|
* @returns The filtered rows
|
||||||
*/
|
*/
|
||||||
export function filterPrivateRows(rows, userID, privacies) {
|
export function filterPrivateRows(rows, userID, privacies) {
|
||||||
console.log({rows, userID, privacies});
|
|
||||||
const filtered = [];
|
const filtered = [];
|
||||||
|
|
||||||
const isMe = userID === game.user.id;
|
const isMe = userID === game.user.id;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue