MCPcopy
hub / github.com/colbymchenry/codegraph / debug

Function debug

src/errors.ts:180–184  ·  view source on GitHub ↗
(message: string, context?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

178 */
179export const defaultLogger: Logger = {
180 debug(message: string, context?: Record<string, unknown>): void {
181 if (process.env.CODEGRAPH_DEBUG) {
182 console.debug(`[CodeGraph] ${message}`, context ?? '');
183 }
184 },
185 warn(message: string, context?: Record<string, unknown>): void {
186 console.warn(`[CodeGraph] ${message}`, context ?? '');
187 },

Callers

nothing calls this directly

Calls 1

debugMethod · 0.65

Tested by

no test coverage detected