MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / mergeData

Function mergeData

web/src/util/logger.ts:174–177  ·  view source on GitHub ↗
(data: LogData)

Source from the content-addressed store, hash-verified

172 context: ParamsOf<LoggerWithContextFn>,
173): ReturnType<LoggerWithContextFn> {
174 const mergeData = (data: LogData) => ({
175 ...context,
176 ...(typeof data === 'object' && data !== null ? data : { data }),
177 })
178 return {
179 debug: (data: LogData, msg?: string, ...args: LogArgs) =>
180 logger.debug(mergeData(data), msg, ...args),

Callers 1

loggerWithContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected