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

Function normalizeLogLevel

src/utils/runtimeLoggingService.ts:38–45  ·  view source on GitHub ↗
(value: string | undefined, fallback: RuntimeLogLevel)

Source from the content-addressed store, hash-verified

36}
37
38function normalizeLogLevel(value: string | undefined, fallback: RuntimeLogLevel): RuntimeLogLevel {
39 const lowered = String(value ?? "").toLowerCase();
40 if ((RUNTIME_LOG_LEVELS as readonly string[]).includes(lowered)) {
41 return lowered as RuntimeLogLevel;
42 }
43
44 return fallback;
45}
46
47function resolveStartupLogLevel(): RuntimeLogLevel {
48 const legacyDebugLog = String(process.env.DEBUG_LOG || "").toLowerCase() === "true";

Callers 3

resolveStartupLogLevelFunction · 0.70
initializeMethod · 0.70
setRuntimeLogLevelMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected