mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
common: make sure we hand through peer for io logging.
This is mainly useful for connectd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -125,7 +125,7 @@ void status_peer_io(enum log_level iodir,
|
||||
{
|
||||
report_logging_io("SIGUSR1");
|
||||
if (logging_io)
|
||||
status_io_full(iodir, NULL, "", p);
|
||||
status_io_full(iodir, peer, "", p);
|
||||
/* We get a huge amount of gossip; don't log it */
|
||||
else if (!is_msg_for_gossipd(p))
|
||||
status_peer_io_short(iodir, peer, p);
|
||||
|
||||
Reference in New Issue
Block a user