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

Function json_add_log

lightningd/log.c:1202–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void json_add_log(struct json_stream *response,
1203 const struct log_book *log_book,
1204 const struct node_id *node_id,
1205 enum log_level minlevel)
1206{
1207 struct log_info info;
1208
1209 info.level = minlevel;
1210 info.response = response;
1211 info.node_id = node_id;
1212
1213 json_array_start(info.response, "log");
1214 log_each_line(log_book, log_to_json, &info);
1215 json_array_end(info.response);
1216}
1217
1218struct command_result *param_loglevel(struct command *cmd,
1219 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