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

Function json_add_log

lightningd/log.c:930–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void json_add_log(struct json_stream *response,
931 const struct log_book *lr,
932 const struct node_id *node_id,
933 enum log_level minlevel)
934{
935 struct log_info info;
936
937 info.level = minlevel;
938 info.response = response;
939 info.num_skipped = 0;
940 info.node_id = node_id;
941
942 json_array_start(info.response, "log");
943 log_each_line(lr, log_to_json, &info);
944 add_skipped(&info);
945 json_array_end(info.response);
946}
947
948struct command_result *param_loglevel(struct command *cmd,
949 const char *name,

Callers 2

json_add_peerFunction · 0.70
json_getlogFunction · 0.70

Calls 3

add_skippedFunction · 0.85
json_array_startFunction · 0.50
json_array_endFunction · 0.50

Tested by

no test coverage detected