Cleanup logger statements

This commit is contained in:
Oliver-Akins 2025-07-24 20:33:07 -06:00
parent db3cad909e
commit 02b49687cf
3 changed files with 1 additions and 8 deletions

View file

@ -1,6 +1,5 @@
import { __ID__, filePath } from "../consts.mjs"; import { __ID__, filePath } from "../consts.mjs";
import { attributeSorter } from "../utils/attributeSort.mjs"; import { attributeSorter } from "../utils/attributeSort.mjs";
import { Logger } from "../utils/Logger.mjs";
import { toID } from "../utils/toID.mjs"; import { toID } from "../utils/toID.mjs";
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api; const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
@ -133,7 +132,6 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
}; };
}; };
Logger.debug(`Updating ${binding} value to ${value}`);
setProperty(this.#attributes, binding, value); setProperty(this.#attributes, binding, value);
await this.render({ parts: [ `attributes` ]}); await this.render({ parts: [ `attributes` ]});
}; };

View file

@ -1,10 +1,7 @@
import { Logger } from "../utils/Logger.mjs";
const { Actor } = foundry.documents; const { Actor } = foundry.documents;
export class TAFActor extends Actor { export class TAFActor extends Actor {
async modifyTokenAttribute(attribute, value, isDelta = false, isBar = true) { async modifyTokenAttribute(attribute, value, isDelta = false, isBar = true) {
Logger.table({ attribute, value, isDelta, isBar });
const attr = foundry.utils.getProperty(this.system, attribute); const attr = foundry.utils.getProperty(this.system, attribute);
const current = isBar ? attr.value : attr; const current = isBar ? attr.value : attr;
const update = isDelta ? current + value : value; const update = isDelta ? current + value : value;

View file

@ -1,5 +1,3 @@
import { Logger } from "../utils/Logger.mjs";
const { TokenDocument } = foundry.documents; const { TokenDocument } = foundry.documents;
const { getProperty, getType, hasProperty, isSubclass } = foundry.utils; const { getProperty, getType, hasProperty, isSubclass } = foundry.utils;
@ -61,7 +59,7 @@ export class TAFTokenDocument extends TokenDocument {
*/ */
getBarAttribute(barName, {alternative} = {}) { getBarAttribute(barName, {alternative} = {}) {
const attribute = alternative || this[barName]?.attribute; const attribute = alternative || this[barName]?.attribute;
Logger.log(barName, attribute);
if (!attribute || !this.actor) { if (!attribute || !this.actor) {
return null; return null;
}; };