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

Function withSentry

src/utils/logger.ts:98–108  ·  view source on GitHub ↗
(cb: (s: SentryModule) => void)

Source from the content-addressed store, hash-verified

96}
97
98function withSentry(cb: (s: SentryModule) => void): void {
99 const s = loadSentrySync();
100 if (!s) {
101 return;
102 }
103 try {
104 cb(s);
105 } catch {
106 // Avoid throwing inside logger
107 }
108}
109
110function mapLogLevelToSentry(level: string): SentryLogLevel {
111 switch (level.toLowerCase()) {

Callers 1

logFunction · 0.85

Calls 1

loadSentrySyncFunction · 0.85

Tested by

no test coverage detected