mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-21 17:44:11 +00:00
🔐 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:
parent
59371be035
commit
68c31b6980
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ const consoleFormat = winston.format.combine(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isError) {
|
if (isError || isWarn) {
|
||||||
return redactMessage(line);
|
return redactMessage(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue