| 574 | } |
| 575 | |
| 576 | void json_stream_log_suppress_for_cmd(struct json_stream *js, |
| 577 | const struct command *cmd) |
| 578 | { |
| 579 | const char *nm = cmd->json_cmd->name; |
| 580 | const char *s = tal_fmt(tmpctx, "Suppressing logging of %s command", nm); |
| 581 | log_io(cmd->jcon->log, LOG_IO_OUT, NULL, s, NULL, 0); |
| 582 | json_stream_log_suppress(js, strdup(nm)); |
| 583 | |
| 584 | } |
| 585 | |
| 586 | static struct json_stream *json_start(struct command *cmd) |
| 587 | { |
no test coverage detected