Skip to content

Commit 0f12d04

Browse files
committed
fix: use logger.debug instead of console.debug in resumeTaskFromHistory
Replaces console.debug with logger.debug to prevent 'Cannot log after tests are done' error in Jest tests. This change follows project logging guidelines and ensures proper test lifecycle handling.
1 parent f877740 commit 0f12d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Cline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ export class Cline {
669669
throw new Error("Unexpected: Last message is not a user or assistant message")
670670
}
671671
} else {
672-
console.debug(Error("Unexpected: No existing API conversation history"))
672+
logger.debug("Unexpected: No existing API conversation history")
673673
}
674674

675675
let newUserContent: UserContent = [...modifiedOldUserContent]

0 commit comments

Comments
 (0)