Skip to content

Commit 7eb0143

Browse files
committed
clarify default unredacted
1 parent 27ae546 commit 7eb0143

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/common/logger.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ interface LogPayload {
6060
export type LoggerType = "console" | "disk" | "mcp";
6161

6262
export abstract class LoggerBase {
63+
private defaultUnredactedLogger: LoggerType = "mcp";
64+
6365
public log(level: LogLevel, payload: LogPayload): void {
64-
const noRedaction = payload.noRedaction !== undefined ? payload.noRedaction : "mcp";
66+
// If no explicit value is supplied for unredacted loggers, default to "mcp"
67+
const noRedaction = payload.noRedaction !== undefined ? payload.noRedaction : this.defaultUnredactedLogger;
6568

6669
this.logCore(level, {
6770
...payload,

0 commit comments

Comments
 (0)