From b2b41a0bf84f6f9b8089d6270c0deba19f975dfe Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Mon, 3 Apr 2023 13:29:35 -0400 Subject: [PATCH] fix log.add under electron (#478) Expose the log.add method, used in old Electron code. Without this change, using the Electron build of Grist fails if is configured for debug log output. --- app/server/lib/log.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/lib/log.ts b/app/server/lib/log.ts index b3f9e766..c1a1ebf9 100644 --- a/app/server/lib/log.ts +++ b/app/server/lib/log.ts @@ -53,6 +53,8 @@ const log: LogWithTimestamp = Object.assign(rawLog, { rawWarn: (msg: string, meta: ILogMeta) => origLog.call(log, 'warn', msg, meta), rawDebug: (msg: string, meta: ILogMeta) => origLog.call(log, 'debug', msg, meta), origLog, + add: rawLog.add.bind(rawLog), // Explicitly pass add method along - otherwise + // there's an odd glitch under Electron. }); /**