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>
This commit is contained in:
Rusty Russell 2018-02-22 12:15:54 +10:30
parent b536e97df2
commit 3e7d98a52d

View File

@ -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);
}