mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-12 10:34:30 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user