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

Function debug_log_to_json

plugins/spender/splice.c:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static void debug_log_to_json(struct json_stream *response,
83 const char *debug_log)
84{
85 char **lines = tal_strsplit(tmpctx, debug_log, "\n", STR_NO_EMPTY);
86
87 for (size_t i = 0; lines[i]; i++)
88 json_add_string(response, NULL, lines[i]);
89}
90
91static struct command_result *make_error(struct command *cmd,
92 struct abort_pkg *abort_pkg,

Callers 3

make_errorFunction · 0.85
unreserve_get_resultFunction · 0.85
continue_spliceFunction · 0.85

Calls 1

json_add_stringFunction · 0.50

Tested by

no test coverage detected