Error logging on failed to decrypt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
07f7c5e025
commit
2306df316e
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ async function processSecrets(
|
|||
} else if (secretsMode === "cleartext") {
|
||||
try {
|
||||
result[key] = await cryptoUtils.decrypt(value);
|
||||
} catch {
|
||||
} catch (err) {
|
||||
logger.warn(`Failed to decrypt field "${key}": ${err instanceof Error ? err.message : String(err)}`);
|
||||
delete result[key];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue