Make the logger bind the function with the prefixed args rather than returning an anon function

This commit is contained in:
Oliver-Akins 2025-02-15 01:53:51 -07:00
parent 064e2fda7e
commit 463b0c4553

View file

@ -15,7 +15,7 @@ const augmentedProps = new Set([
export const Logger = new Proxy(console, { export const Logger = new Proxy(console, {
get(target, prop, _receiver) { get(target, prop, _receiver) {
if (augmentedProps.has(prop)) { if (augmentedProps.has(prop)) {
return (...args) => target[prop](game.system.id, `|`, ...args); return target[prop].bind(target, game.system.id, `|`);
}; };
return target[prop]; return target[prop];
}, },