MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / flushLogs

Function flushLogs

src/logger.ts:35–46  ·  view source on GitHub ↗
(
  logFile: fs.WriteStream,
  timeoutMs = 2000,
)

Source from the content-addressed store, hash-verified

33}
34
35export function flushLogs(
36 logFile: fs.WriteStream,
37 timeoutMs = 2000,
38): Promise<void> {
39 return new Promise((resolve, reject) => {
40 const timeout = setTimeout(reject, timeoutMs);
41 logFile.end(() => {
42 clearTimeout(timeout);
43 resolve();
44 });
45 });
46}
47
48export const logger: Logger = debug(mcpDebugNamespace) as Logger;

Callers 1

exitFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected