MCPcopy
hub / github.com/continuedev/continue / configureLogger

Function configureLogger

extensions/cli/src/logger.ts:5–20  ·  view source on GitHub ↗
(isHeadless: boolean)

Source from the content-addressed store, hash-verified

3 * When in headless mode, console.info is suppressed to avoid verbose output
4 */
5export function configureLogger(isHeadless: boolean): void {
6 if (isHeadless) {
7 // Save the original console.info function
8 const originalConsoleInfo = console.info;
9
10 // Override console.info to be a no-op in headless mode
11 console.info = function () {
12 // Do nothing in headless mode
13 };
14
15 // Add a method to restore original behavior if needed
16 (console as any).restoreInfo = function () {
17 console.info = originalConsoleInfo;
18 };
19 }
20}

Callers 2

logging.test.tsFile · 0.70
chatFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected