MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / debug

Function debug

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

Source from the content-addressed store, hash-verified

192 */
193export const defaultLogger: Logger = {
194 debug(message: string, context?: Record<string, unknown>): void {
195 if (process.env.CODEGRAPH_DEBUG) {
196 console.debug(`[CodeGraph] ${message}`, context ?? '');
197 }
198 },
199 warn(message: string, context?: Record<string, unknown>): void {
200 console.warn(`[CodeGraph] ${message}`, context ?? '');
201 },

Callers

nothing calls this directly

Calls 1

debugMethod · 0.65

Tested by

no test coverage detected