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:
Rusty Russell
2022-01-29 14:03:05 +10:30
parent 960e911986
commit f14c0ef76a

View File

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