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

@@ -138,6 +138,9 @@ struct lightningd {
/* Transaction filter matching what we're interested in */
struct txfilter *owned_txfilter;
/* May be useful for non-developers debugging in the field */
char *debug_subdaemon_io;
#if DEVELOPER
/* If we want to debug a subdaemon. */
const char *dev_debug_subdaemon;