MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / logLevelBlock

Function logLevelBlock

__tests__/scripts/docker-log-level.test.ts:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const blockEnd = "# <<< backend-log-level";
19
20function logLevelBlock(): string {
21 const start = entrypoint.indexOf(blockStart);
22 const end = entrypoint.indexOf(blockEnd);
23 if (start === -1 || end === -1) {
24 throw new Error("Docker backend-log-level markers are missing");
25 }
26 return entrypoint.slice(start, end);
27}
28
29/** Resolve LOG_LEVEL / AUTOMATION_LOG_LEVEL exactly as the entrypoint does. */
30function resolveLogLevels(env: Record<string, string>): {

Callers 2

resolveLogLevelsFunction · 0.85
uvicornLogLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected