MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / redactLog

Function redactLog

src/utils/sentry.ts:106–120  ·  view source on GitHub ↗
(log: Sentry.Log)

Source from the content-addressed store, hash-verified

104}
105
106function redactLog(log: Sentry.Log): Sentry.Log | null {
107 if (!log) {
108 return null;
109 }
110
111 if (typeof log.message === 'string') {
112 log.message = redactPathLikeData(log.message);
113 }
114
115 if (log.attributes !== undefined) {
116 log.attributes = redactUnknown(log.attributes) as Record<string, unknown>;
117 }
118
119 return log;
120}
121
122export function __redactEventForTests(event: Sentry.Event): Sentry.Event {
123 const clone = structuredClone(event);

Callers 1

__redactLogForTestsFunction · 0.85

Calls 2

redactPathLikeDataFunction · 0.85
redactUnknownFunction · 0.85

Tested by

no test coverage detected