lightningd: suppress IO_OUT logging for getlog command

Before this, the response of `getlog io` blew up quickly
when called multiple times.
This commit is contained in:
Simon Vrouwe
2019-05-23 13:09:17 +03:00
committed by Rusty Russell
parent 8feb05aef4
commit db57d9c5d2
5 changed files with 24 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ struct json_stream *json_stream_dup(const tal_t *ctx, struct json_stream *origin
*/
void json_stream_close(struct json_stream *js, struct command *writer);
/* For low-level JSON stream access: */
void json_stream_log_suppress(struct json_stream *js, const char *cmd_name);
/**
* json_stream_still_writing - is someone currently writing to this stream?
* @js: the json_stream.