redactError()
function redactError(error: Error): {
message: string;
name: string;
stack?: string;
};Defined in: src/lib/logging/redaction.ts:974
Creates a safe copy of an error for logging. Redacts any PII that might be in the error message.
Parameters
| Parameter | Type | Description |
|---|---|---|
error | Error | The error to make safe. |
Returns
{
message: string;
name: string;
stack?: string;
}A safe error object for logging.
| Name | Type | Defined in |
|---|---|---|
message | string | src/lib/logging/redaction.ts:974 |
name | string | src/lib/logging/redaction.ts:974 |
stack? | string | src/lib/logging/redaction.ts:974 |