mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-02 07:34:36 +02:00
replace my printf calls with qDebug
This commit is contained in:
parent
fe28a051d5
commit
0a379a05ff
@ -76,7 +76,7 @@ public:
|
||||
readBytesExactFromSocket(resp, length-resp.size());
|
||||
|
||||
if (length != resp.size()) {
|
||||
printf("Warning: Packet length doesn't match actual packet size (%d expected vs %d received)\n", length, resp.size());
|
||||
qDebug() << "Warning: Packet length doesn't match actual packet size (" << length << " expected vs " << resp.size() << " received)";
|
||||
}
|
||||
qDebug() << "Received response successfully";
|
||||
|
||||
|
@ -30,14 +30,14 @@ private:
|
||||
lookup->deleteLater();
|
||||
|
||||
if (lookup->error() != QDnsLookup::NoError) {
|
||||
printf("Warning: SRV record lookup failed (%v), trying A record lookup\n", lookup->errorString().toStdString());
|
||||
qDebug() << "Warning: SRV record lookup failed (" << lookup->errorString().toStdString() << "), trying A record lookup";
|
||||
pingWithDomainA(domain, port);
|
||||
return;
|
||||
}
|
||||
|
||||
auto records = lookup->serviceRecords();
|
||||
if (records.isEmpty()) {
|
||||
printf("Warning: no SRV entries found for domain, trying A record lookup\n");
|
||||
qDebug() << "Warning: no SRV entries found for domain, trying A record lookup";
|
||||
pingWithDomainA(domain, port);
|
||||
return;
|
||||
}
|
||||
@ -71,7 +71,7 @@ private:
|
||||
}
|
||||
|
||||
void emitFail(std::string error) {
|
||||
printf("Ping error: %s\n", error.c_str());
|
||||
qDebug() << "Ping error:" << QString::fromStdString(error);
|
||||
emit fail();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user