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

Function flush

src/utils/xcodebuild-log-capture.ts:102–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 return lines.length;
101 },
102 flush(): string | null {
103 if (lines.length === 0) return null;
104 const logDir = resolveWritableLogDir();
105 scheduleArtifactCreatedSweep(logDir);
106 const debugPath = path.join(logDir.path, generateLogFileName(`${toolName}_parser-debug`));
107 fs.writeFileSync(
108 debugPath,
109 `Unrecognized xcodebuild output lines (${lines.length}):\n\n${lines.join('\n')}\n`,
110 { flag: 'wx' },
111 );
112 return debugPath;
113 },
114 };
115}

Callers

nothing calls this directly

Calls 3

resolveWritableLogDirFunction · 0.85
generateLogFileNameFunction · 0.85

Tested by

no test coverage detected