Browse Source

status: don't log gossip messages in channeld.

Looking at an example log from #968, 288612 of 289244 lines were simply
channeld logging incoming and outgoing gossip.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
3e7d98a52d
  1. 3
      common/status.c

3
common/status.c

@ -84,7 +84,8 @@ void status_io(enum log_level iodir, const u8 *p)
{
if (logging_io)
status_io_full(iodir, p);
else
/* We get a huge amount of gossip; don't log it */
else if (!is_gossip_msg(p))
status_io_short(iodir, p);
}

Loading…
Cancel
Save