mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Rusty Russell
parent
8feb05aef4
commit
db57d9c5d2
@@ -100,6 +100,13 @@ void json_stream_close(struct json_stream *js, struct command *writer)
|
||||
js->writer = NULL;
|
||||
}
|
||||
|
||||
void json_stream_log_suppress(struct json_stream *js, const char *cmd_name)
|
||||
{
|
||||
/* Really shouldn't be used for anything else */
|
||||
assert(streq(cmd_name, "getlog"));
|
||||
js->log = NULL;
|
||||
}
|
||||
|
||||
/* FIXME: This, or something prettier (io_replan?) belong in ccan/io! */
|
||||
static void adjust_io_write(struct io_conn *conn, ptrdiff_t delta)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user