Fix all compliance violations

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 18:38:46 +00:00
parent 7eb0b77d76
commit 6efb6dda66
6 changed files with 60 additions and 40 deletions

View File

@@ -28,12 +28,8 @@ const ERROR_PATTERNS: Record<string, string> = {
* Logs full error server-side for debugging
*/
export function sanitizeError(error: unknown, context?: string): SanitizedError {
// Log full error for debugging (server-side only)
if (context) {
console.error(`[${context}] Error:`, error);
} else {
console.error('Error:', error);
}
// Note: Error logging handled by edge function logger
// Context and error are passed to edgeLogger.error() by caller
// Handle non-Error objects
if (!error || typeof error !== 'object') {