From de9bc172de9f23bc8ca57f156809c1e55a450800 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Wed, 4 May 2022 13:51:46 +0200 Subject: [PATCH] connect: adds nodeid to remote_addr log message --- lightningd/peer_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index eb6fd2074..9a0b42842 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1170,8 +1170,8 @@ void peer_connected(struct lightningd *ld, const u8 *msg) /* Log and update remote_addr for Nat/IP discovery. */ if (hook_payload->remote_addr) { - log_info(ld->log, "Peer says it sees our address as: %s", - fmt_wireaddr(tmpctx, hook_payload->remote_addr)); + log_peer_info(ld->log, &id, "Peer says it sees our address as: %s", + fmt_wireaddr(tmpctx, hook_payload->remote_addr)); /* Currently only from peers we have a channel with, until we * do stuff like probing for remote_addr to a random node. */ if (!list_empty(&peer->channels))