From 463b0c45538cef8b63de744d74649220bf1b0b15 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 15 Feb 2025 01:53:51 -0700 Subject: [PATCH] Make the logger bind the function with the prefixed args rather than returning an anon function --- module/utils/Logger.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/utils/Logger.mjs b/module/utils/Logger.mjs index fc1b51c..70c6481 100644 --- a/module/utils/Logger.mjs +++ b/module/utils/Logger.mjs @@ -15,7 +15,7 @@ const augmentedProps = new Set([ export const Logger = new Proxy(console, { get(target, prop, _receiver) { if (augmentedProps.has(prop)) { - return (...args) => target[prop](game.system.id, `|`, ...args); + return target[prop].bind(target, game.system.id, `|`); }; return target[prop]; },