Add warning log for hosts with no display data in relay response
This commit is contained in:
parent
20bdd6b34a
commit
26cd4f2607
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ QUrl RelayClient::apiUrl(const QString &path) const
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─── Auth-header injection ────────────────────────────────────────────────────
|
// ─── Auth-header injection ────────────────────────────────────────────────
|
||||||
|
|
||||||
QNetworkReply *RelayClient::authedGet(const QString &path)
|
QNetworkReply *RelayClient::authedGet(const QString &path)
|
||||||
{
|
{
|
||||||
|
|
@ -215,6 +215,10 @@ void RelayClient::onHostsReply(QNetworkReply *reply)
|
||||||
h.displays.append(displayMap);
|
h.displays.append(displayMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (h.displays.isEmpty()) {
|
||||||
|
qWarning() << "Host" << h.name << "has no display data in relay response";
|
||||||
|
}
|
||||||
|
|
||||||
if (!h.ip.isEmpty())
|
if (!h.ip.isEmpty())
|
||||||
hosts << h;
|
hosts << h;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue