Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nodeid to logs in OperationalDeviceProxy.cpp #21019

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/app/OperationalDeviceProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ void OperationalDeviceProxy::UpdateDeviceData(const Transport::PeerAddress & add
char peerAddrBuff[Transport::PeerAddress::kMaxToStringSize];
addr.ToString(peerAddrBuff);

ChipLogDetail(Controller, "Updating device address to %s while in state %d", peerAddrBuff, static_cast<int>(mState));
ChipLogDetail(Controller, "Updating device address to %s while in state %d on node 0x" ChipLogFormatX64, peerAddrBuff,
andy31415 marked this conversation as resolved.
Show resolved Hide resolved
static_cast<int>(mState), ChipLogValueX64(GetDeviceId()));
#endif

CHIP_ERROR err = CHIP_NO_ERROR;
Expand Down Expand Up @@ -366,7 +367,9 @@ OperationalDeviceProxy::~OperationalDeviceProxy()
{
if (mAddressLookupHandle.IsActive())
{
ChipLogProgress(Discovery, "Cancelling incomplete address resolution as device is being deleted.");
ChipLogProgress(Discovery,
"Cancelling incomplete address resolution as device is being deleted for node 0x" ChipLogFormatX64,
ChipLogValueX64(GetDeviceId()));

// Skip cancel callback since the destructor is being called, so we assume that this object is
// obviously not used anymore
Expand All @@ -391,7 +394,9 @@ CHIP_ERROR OperationalDeviceProxy::LookupPeerAddress()
// MoveToState calls in this method.
if (mAddressLookupHandle.IsActive())
{
ChipLogProgress(Discovery, "Operational node lookup already in progress. Will NOT start a new one.");
ChipLogProgress(Discovery,
"Operational node lookup for 0x" ChipLogFormatX64 " already in progress. Will NOT start a new one.",
ChipLogValueX64(GetDeviceId()));
return CHIP_NO_ERROR;
}

Expand Down