mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
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:
@@ -27,6 +27,8 @@ void status_fmt(enum log_level level, const char *fmt, ...)
|
||||
/* vprintf-style */
|
||||
void status_vfmt(enum log_level level, const char *fmt, va_list ap);
|
||||
|
||||
/* Usually we only log the packet names, not contents. */
|
||||
extern volatile bool logging_io;
|
||||
void status_io(enum log_level iodir, const u8 *p);
|
||||
|
||||
/* Helpers */
|
||||
|
||||
Reference in New Issue
Block a user