From 3e7d98a52d338d0a1e6e778c2de616d950720983 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Feb 2018 12:15:54 +1030 Subject: [PATCH] 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 --- common/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/status.c b/common/status.c index f0e1f1180..8a9cac251 100644 --- a/common/status.c +++ b/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); }