MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / restoreConsole

Method restoreConsole

apps/cli/src/agent/extension-host.ts:334–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 }
333
334 private restoreConsole(): void {
335 if (!this.originalConsole) {
336 return
337 }
338
339 console.log = this.originalConsole.log
340 console.warn = this.originalConsole.warn
341 console.error = this.originalConsole.error
342 console.debug = this.originalConsole.debug
343 console.info = this.originalConsole.info
344 this.originalConsole = null
345
346 if (this.originalProcessEmitWarning) {
347 process.emitWarning = this.originalProcessEmitWarning
348 this.originalProcessEmitWarning = null
349 }
350 }
351
352 private logMessageDebug(msg: ClineMessage, type: "new" | "updated"): void {
353 if (msg.partial) {

Callers 3

constructorMethod · 0.95
activateMethod · 0.95
disposeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected