Add warning log for hosts with no display data in relay response

This commit is contained in:
Zac Gaetano 2026-05-06 20:22:58 -04:00
parent 20bdd6b34a
commit 26cd4f2607

View file

@ -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;
} }