Clean-up debug logs

This commit is contained in:
Cohee 2024-12-07 20:34:01 +02:00
parent 54ca9477dd
commit 0638953a20
2 changed files with 2 additions and 3 deletions

View File

@ -448,6 +448,5 @@ export class FilterHelper {
for (const cache of Object.values(this.fuzzySearchCaches)) {
cache.resultMap.clear();
}
console.log('All fuzzy search caches cleared');
}
}

View File

@ -1756,7 +1756,7 @@ async function loadContextSettings() {
} else {
$element.val(power_user.context[control.property]);
}
console.log(`Setting ${$element.prop('id')} to ${power_user.context[control.property]}`);
console.debug(`Setting ${$element.prop('id')} to ${power_user.context[control.property]}`);
// If the setting already exists, no need to duplicate it
// TODO: Maybe check the power_user object for the setting instead of a flag?
@ -1767,7 +1767,7 @@ async function loadContextSettings() {
} else {
power_user.context[control.property] = value;
}
console.log(`Setting ${$element.prop('id')} to ${value}`);
console.debug(`Setting ${$element.prop('id')} to ${value}`);
if (!CSS.supports('field-sizing', 'content') && $(this).is('textarea')) {
await resetScrollHeight($(this));
}