From ff52d5435ead104a38555af6b19c350ff2b4680c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 12 Jul 2026 00:58:23 -0700 Subject: [PATCH] Append first log argument to datetime string to allow color support in later args. --- src/utils/logger.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/logger.ts b/src/utils/logger.ts index 632ae29..bf63b87 100644 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -36,7 +36,8 @@ export class Logger { } } } - const entry = `${datetime} ${globalThis.process?.title ?? 'NanoPow'}[${globalThis.process?.pid ?? 'browser'}]:` + const entry = `${datetime} ${globalThis.process?.title ?? 'NanoPow'}[${globalThis.process?.pid ?? 'browser'}]: ${args[0]}` + args = args.slice(1) console.log(entry, ...args) globalThis.process?.send?.({ type: 'console', data: `${entry} ${args}` }) } -- 2.52.0