diff --git a/src/lib/address_resolve/AddressResolve_DefaultImpl.cpp b/src/lib/address_resolve/AddressResolve_DefaultImpl.cpp index e10146f4669793..9888c96e721265 100644 --- a/src/lib/address_resolve/AddressResolve_DefaultImpl.cpp +++ b/src/lib/address_resolve/AddressResolve_DefaultImpl.cpp @@ -47,13 +47,16 @@ void NodeLookupHandle::LookupResult(const ResolveResult & result) char addr_string[Transport::PeerAddress::kMaxToStringSize]; result.address.ToString(addr_string); + const PeerId peerId = GetRequest().GetPeerId(); if (success) { - ChipLogProgress(Discovery, "%s: new best score: %u", addr_string, to_underlying(score)); + ChipLogProgress(Discovery, "%s: new best score: %u (for " ChipLogFormatPeerId ")", addr_string, to_underlying(score), + ChipLogValuePeerId(peerId)); } else { - ChipLogProgress(Discovery, "%s: score has not improved: %u", addr_string, to_underlying(score)); + ChipLogProgress(Discovery, "%s: score has not improved: %u (for " ChipLogFormatPeerId ")", addr_string, + to_underlying(score), ChipLogValuePeerId(peerId)); } #endif }