MCPcopy
hub / github.com/codeaashu/claude-code / getSanitizedErrorLogs

Function getSanitizedErrorLogs

src/components/Feedback.tsx:116–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115// Get sanitized error logs with sensitive information redacted
116function getSanitizedErrorLogs(): Array<{
117 error?: string;
118 timestamp?: string;
119}> {
120 // Sanitize error logs to remove any API keys
121 return getInMemoryErrors().map(errorInfo => {
122 // Create a copy of the error info to avoid modifying the original
123 const errorCopy = {
124 ...errorInfo
125 } as {
126 error?: string;
127 timestamp?: string;
128 };
129
130 // Sanitize error if present and is a string
131 if (errorCopy && typeof errorCopy.error === 'string') {
132 errorCopy.error = redactSensitiveInfo(errorCopy.error);
133 }
134 return errorCopy;
135 });
136}
137async function loadRawTranscriptJsonl(): Promise<string | null> {
138 try {
139 const transcriptPath = getTranscriptPath();

Callers

nothing calls this directly

Calls 2

getInMemoryErrorsFunction · 0.85
redactSensitiveInfoFunction · 0.85

Tested by

no test coverage detected