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

Function log_failed_response

apps/backend/utils.js:349–355  ·  view source on GitHub ↗

* @brief Logs failed parse attempt with raw data * * @param error [in] JSON parse error object * @param data [in] Original unparsed data * @param task_objid [in] Task identifier for tracing * @param memo [in] Operation context for logging * * @note Logs error and raw data in

(error, data, task_objid, memo)

Source from the content-addressed store, hash-verified

347 * @note Logs error and raw data in tabular format
348 */
349function log_failed_response(error, data, task_objid, memo) {
350 logger(LOG_LEVEL.ERROR,
351 `Error parsing the response ${error} after task ${task_objid} notification.`,
352 memo
353 );
354 logger(LOG_LEVEL.INFO_TABLE, data);
355}
356
357module.exports = {
358 translate_ipv4_to_ipv6,

Callers 1

process_response_dataFunction · 0.85

Calls 1

loggerFunction · 0.85

Tested by

no test coverage detected