Changeset 11185 in ntrip for trunk/BNC/src/bncnetqueryv2.cpp
- Timestamp:
- Nov 9, 2026, 12:15:48 PM (12 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/bncnetqueryv2.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryv2.cpp
r11126 r11185 43 43 if (_secure ) { 44 44 if (!QSslSocket::supportsSsl()) { 45 BNC_CORE-> slotMessage("No SSL support, install OpenSSL run-time libraries", true);45 BNC_CORE->message("No SSL support, install OpenSSL run-time libraries", true, "ntrip", t_logRecord::error); 46 46 stop(); 47 47 } … … 80 80 _status = error; 81 81 if (!_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray().isEmpty()) { 82 emit new Message(_url.path().toLatin1().replace(0,1,"") +82 emit newLogRecord(t_logRecord::message(t_logRecord::warning, _url.path().toLatin1().replace(0,1,"") + 83 83 ": NetQueryV2: server replied: " + 84 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 85 true); 84 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray()), true); 86 85 } else { 87 emit new Message(_url.path().toLatin1().replace(0,1,"") +86 emit newLogRecord(t_logRecord::message(t_logRecord::warning, _url.path().toLatin1().replace(0,1,"") + 88 87 ": NetQueryV2: server replied: " + 89 _reply->errorString().toLatin1(), 90 true); 88 _reply->errorString().toLatin1()), true); 91 89 } 92 90 } … … 100 98 void bncNetQueryV2::slotProxyAuthenticationRequired(const QNetworkProxy&, 101 99 QAuthenticator*) { 102 emit new Message("slotProxyAuthenticationRequired", true);100 emit newLogRecord(t_logRecord::message(t_logRecord::warning, "slotProxyAuthenticationRequired"), true); 103 101 } 104 102 … … 240 238 if (timedOut) { 241 239 _status = error; 242 emit new Message(_url.path().toLatin1().replace(0,1,"")243 + ": Read timeout", true); 240 emit newLogRecord(t_logRecord::message(t_logRecord::warning, _url.path().toLatin1().replace(0,1,"") 241 + ": Read timeout"), true); 244 242 disconnect(_reply, SIGNAL(finished()), this, SLOT(slotFinished())); 245 243 _reply->abort(); … … 294 292 if (_sslIgnoreErrors) { 295 293 _reply->ignoreSslErrors(); 296 BNC_CORE-> slotMessage((msg + " (ignored as configured)").toLatin1(), true);294 BNC_CORE->message((msg + " (ignored as configured)").toLatin1(), true, "ntrip", t_logRecord::warning); 297 295 } 298 296 else { 299 BNC_CORE-> slotMessage(msg.toLatin1(), true);297 BNC_CORE->message(msg.toLatin1(), true, "ntrip", t_logRecord::error); 300 298 stop(); 301 299 }
Note:
See TracChangeset
for help on using the changeset viewer.
