MCPcopy Create free account
hub / github.com/aptdnfapt/qwen-code-oai-proxy / parseInteger

Function parseInteger

src/utils/runtimeLoggingService.ts:33–36  ·  view source on GitHub ↗
(value: string | undefined, fallback: number)

Source from the content-addressed store, hash-verified

31};
32
33function parseInteger(value: string | undefined, fallback: number): number {
34 const parsed = Number.parseInt(value ?? "", 10);
35 return Number.isNaN(parsed) ? fallback : parsed;
36}
37
38function normalizeLogLevel(value: string | undefined, fallback: RuntimeLogLevel): RuntimeLogLevel {
39 const lowered = String(value ?? "").toLowerCase();

Callers 3

rotateErrorLogMethod · 0.70
cleanupOldErrorLogsMethod · 0.70
cleanupOldDebugLogsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected