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

Function normalizeLogLevel

src/utils/logger.ts:139–146  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

137 * validates against known levels. Returns null for unrecognized values.
138 */
139export function normalizeLogLevel(raw: string): LogLevel | null {
140 const lower = raw.trim().toLowerCase();
141 const mapped = lower === 'warning' ? 'warn' : lower;
142 if (mapped in LOG_LEVELS) {
143 return mapped as LogLevel;
144 }
145 return null;
146}
147
148/**
149 * Yargs coerce function for log-level options.

Callers 2

resolveLogLevelFunction · 0.90
bootstrapServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected