mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 18:39:50 +00:00
[srp-server] include SRP update ID in log messages (#7089)
This commit is contained in:
@@ -338,7 +338,7 @@ void Server::HandleServiceUpdateResult(ServiceUpdateId aId, Error aError)
|
||||
}
|
||||
else
|
||||
{
|
||||
otLogInfoSrp("[server] delayed SRP host update result, the SRP update has been committed");
|
||||
otLogInfoSrp("[server] delayed SRP host update result, the SRP update has been committed (updateId = %u)", aId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1406,9 +1406,10 @@ void Server::HandleOutstandingUpdatesTimer(Timer &aTimer)
|
||||
|
||||
void Server::HandleOutstandingUpdatesTimer(void)
|
||||
{
|
||||
otLogInfoSrp("[server] outstanding service update timeout");
|
||||
while (!mOutstandingUpdates.IsEmpty() && mOutstandingUpdates.GetTail()->GetExpireTime() <= TimerMilli::GetNow())
|
||||
{
|
||||
otLogInfoSrp("[server] outstanding service update timeout (updateId = %u)",
|
||||
mOutstandingUpdates.GetTail()->GetId());
|
||||
HandleServiceUpdateResult(mOutstandingUpdates.GetTail(), kErrorResponseTimeout);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user