CoAP: Silence warning regarding multicast join error

pull/687/head
Simon Stürz 2024-10-28 14:02:00 +01:00
parent 36adad329f
commit 8e05986333
1 changed files with 3 additions and 2 deletions

View File

@ -227,9 +227,10 @@ bool Coap::joinMulticastGroup(const QHostAddress &address)
{
bool ok = m_socket->joinMulticastGroup(address);
if (ok) {
qCDebug(dcCoap()) << "Joined CoAP multucast group on:" << address;
qCDebug(dcCoap()) << "Joined CoAP multicast group on:" << address.toString();
} else {
qCWarning(dcCoap()) << "Error joining CoAP multicast group on:" << address;
// Note: the caller of this method shall warn about the failed multicast join and retry
qCDebug(dcCoap()) << "Error joining CoAP multicast group on:" << address.toString();
}
return ok;
}