🔐 fix: Also Redact Sensitive Patterns on Warn Console Lines

The warn-level console output now includes a metadata trailer that may
contain provider-returned error strings with embedded tokens or keys
(e.g. `Bearer ...`, `sk-...`). Apply `redactMessage` to warn lines in
addition to error, matching the new surface area.
This commit is contained in:
Danny Avila 2026-04-18 10:51:18 -04:00
parent 59371be035
commit 68c31b6980

View file

@ -128,7 +128,7 @@ const consoleFormat = winston.format.combine(
}
}
if (isError) {
if (isError || isWarn) {
return redactMessage(line);
}