From f14c0ef76a821b139b96d72a22a56800aa9b4c28 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 29 Jan 2022 14:03:05 +1030 Subject: [PATCH] common: make sure we hand through peer for io logging. This is mainly useful for connectd. Signed-off-by: Rusty Russell --- common/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/status.c b/common/status.c index 499484c39..d2d770523 100644 --- a/common/status.c +++ b/common/status.c @@ -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);