From 3e62b8fe12e89dd047ce7ea122aaad32bfd724c3 Mon Sep 17 00:00:00 2001 From: Jamie Nelson Date: Sun, 11 Oct 2026 08:05:09 +1100 Subject: [PATCH] refactor: scope logger group state to each task instance --- src/logtask/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logtask/index.ts b/src/logtask/index.ts index 8a8dbbc8..e07811a5 100644 --- a/src/logtask/index.ts +++ b/src/logtask/index.ts @@ -137,7 +137,7 @@ export default class LogTask { /** * Map of ingroup settings per task name. */ - private static ingroupSettings = new Map(); + private groupActive = false; /** * The width of the indentation for log messages. @@ -169,14 +169,14 @@ export default class LogTask { * Gets the ingroup setting for the task. */ get ingroup(): boolean { - return LogTask.ingroupSettings.get(this.name) ?? false; + return this.groupActive; } /** * Sets the ingroup setting for this task. */ set ingroup(value: boolean) { - LogTask.ingroupSettings.set(this.name, value); + this.groupActive = value; } getMessageString(step: string, desc: string, emojiStr: string): string {