MCPcopy Create free account
hub / github.com/ElementsProject/lightning / log_broken_and_complete

Function log_broken_and_complete

plugins/libplugin.c:314–326  ·  view source on GitHub ↗

Broken the result, and terminate the command */

Source from the content-addressed store, hash-verified

312
313/* Broken the result, and terminate the command */
314struct command_result *log_broken_and_complete(struct command *cmd,
315 const char *method,
316 const char *buf,
317 const jsmntok_t *result,
318 void *arg)
319{
320 plugin_log(cmd->plugin, LOG_BROKEN,
321 "%s failed with %.*s",
322 method,
323 json_tok_full_len(result),
324 json_tok_full(buf, result));
325 return ignore_and_complete(cmd, method, buf, result, arg);
326}
327
328/* Call plugin_err */
329struct command_result *plugin_broken_cb(struct command *cmd,

Callers

nothing calls this directly

Calls 4

ignore_and_completeFunction · 0.85
plugin_logFunction · 0.70
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected