MCPcopy Create free account
hub / github.com/AS-AIGC/TranscriptHub / log_successful_response

Function log_successful_response

apps/backend/utils.js:330–337  ·  view source on GitHub ↗

* @brief Logs successfully parsed response data * * @param data [in] Parsed JSON object * @param task_objid [in] Task identifier for tracing * @param memo [in] Operation context for logging * * @note Logs both formatted string and tabular data

(data, task_objid, memo)

Source from the content-addressed store, hash-verified

328 * @note Logs both formatted string and tabular data
329 */
330function log_successful_response(data, task_objid, memo) {
331 const formatted_data = JSON.stringify(data, null, 2);
332 logger(LOG_LEVEL.INFO,
333 `Received response ${formatted_data} after task ${task_objid} notification.`,
334 memo
335 );
336 logger(LOG_LEVEL.INFO_TABLE, data);
337}
338
339/**
340 * @brief Logs failed parse attempt with raw data

Callers 1

process_response_dataFunction · 0.85

Calls 1

loggerFunction · 0.85

Tested by

no test coverage detected