* @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)
| 328 | * @note Logs both formatted string and tabular data |
| 329 | */ |
| 330 | function 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 |
no test coverage detected