MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / error

Method error

lib/logger.ts:106–109  ·  view source on GitHub ↗
(message: string, data?: any)

Source from the content-addressed store, hash-verified

104 }
105
106 error(message: string, data?: any) {
107 const component = this.getCallerFile(2)
108 return this.write("ERROR", component, message, data)
109 }
110
111 /**
112 * Strips unnecessary metadata from messages for cleaner debug logs.

Callers 7

handleSweepCommandFunction · 0.80
saveSessionStateFunction · 0.80
checkSessionFunction · 0.80
sendCompressNotificationFunction · 0.80
sendIgnoredMessageFunction · 0.80
print.tsFile · 0.80
failFunction · 0.80

Calls 2

getCallerFileMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected