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

Function json_add_log

lightningd/log.c:1189–1203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187}
1188
1189void json_add_log(struct json_stream *response,
1190 const struct log_book *log_book,
1191 const struct node_id *node_id,
1192 enum log_level minlevel)
1193{
1194 struct log_info info;
1195
1196 info.level = minlevel;
1197 info.response = response;
1198 info.node_id = node_id;
1199
1200 json_array_start(info.response, "log");
1201 log_each_line(log_book, log_to_json, &info);
1202 json_array_end(info.response);
1203}
1204
1205struct command_result *param_loglevel(struct command *cmd,
1206 const char *name,

Callers 2

json_add_peerFunction · 0.70
json_getlogFunction · 0.70

Calls 2

json_array_startFunction · 0.85
json_array_endFunction · 0.85

Tested by

no test coverage detected