common: only log io if they set --debug-subdaemon-io=<daemon> or with SIGUSR1.

Otherwise we just log the type of msg.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-02-05 14:39:28 +10:30
parent de56dc0ffc
commit c01f3267d5
7 changed files with 69 additions and 17 deletions

View File

@@ -67,6 +67,7 @@ static struct lightningd *new_lightningd(const tal_t *ctx,
ld->portnum = DEFAULT_PORT;
timers_init(&ld->timers, time_mono());
ld->topology = new_topology(ld, ld->log);
ld->debug_subdaemon_io = NULL;
return ld;
}