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

Function json_stream_log_suppress_for_cmd

lightningd/jsonrpc.c:705–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705void json_stream_log_suppress_for_cmd(struct json_stream *js,
706 const struct command *cmd)
707{
708 const char *nm = cmd->json_cmd->name;
709 const char *s = tal_fmt(tmpctx, "Suppressing logging of %s command", nm);
710 log_io(cmd->jcon->log, LOG_IO_OUT, NULL, s, NULL, 0);
711
712 /* Really shouldn't be used for anything else */
713 assert(streq(nm, "getlog"));
714 js->log = NULL;
715}
716
717static struct json_stream *json_start(struct command *cmd)
718{

Callers 1

json_getlogFunction · 0.70

Calls 1

log_ioFunction · 0.70

Tested by

no test coverage detected