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

Function log_broken_and_complete

plugins/libplugin.c:313–325  ·  view source on GitHub ↗

Broken the result, and terminate the command */

Source from the content-addressed store, hash-verified

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