MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / log

Function log

src/index.js:427–435  ·  view source on GitHub ↗
(client, level, message, extra)

Source from the content-addressed store, hash-verified

425 return false
426}
427
428async function log(client, level, message, extra) {
429 try {
430 await sdkCall(
431 client.app.log.bind(client.app),
432 { body: extra === undefined ? { service: SERVICE, level, message } : { service: SERVICE, level, message, extra } },
433 extra === undefined ? { service: SERVICE, level, message } : { service: SERVICE, level, message, extra },
434 )
435 } catch {}
436}
437
438async function toast(client, message, variant = "info") {

Callers 3

fireSdkFunction · 0.85
compactSessionFunction · 0.85
OpenCodeLoopPluginFunction · 0.85

Calls 1

sdkCallFunction · 0.85

Tested by

no test coverage detected