MCPcopy
hub / github.com/simstudioai/sim / sanitizeForLogging

Function sanitizeForLogging

apps/sim/lib/core/security/redaction.ts:151–159  ·  view source on GitHub ↗
(value: string, maxLength = 100)

Source from the content-addressed store, hash-verified

149 * @returns The sanitized string
150 */
151export function sanitizeForLogging(value: string, maxLength = 100): string {
152 if (!value) return ''
153
154 let sanitized = value.substring(0, maxLength)
155
156 sanitized = redactSensitiveValues(sanitized)
157
158 return sanitized
159}
160
161/**
162 * Sanitizes event data for error reporting/analytics

Callers 2

redaction.test.tsFile · 0.90

Calls 1

redactSensitiveValuesFunction · 0.85

Tested by

no test coverage detected