mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +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:
parent
b536e97df2
commit
3e7d98a52d
@ -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…
Reference in New Issue
Block a user