@@ -90,7 +90,7 @@ static QList<QString> savedPaymentRequests;
90
90
91
91
static void ReportInvalidCertificate (const QSslCertificate& cert)
92
92
{
93
- qDebug () << " ReportInvalidCertificate : Payment server found an invalid certificate: " << cert.subjectInfo (QSslCertificate::CommonName);
93
+ qWarning () << " ReportInvalidCertificate : Payment server found an invalid certificate: " << cert.subjectInfo (QSslCertificate::CommonName);
94
94
}
95
95
96
96
//
@@ -161,7 +161,7 @@ void PaymentServer::LoadRootCAs(X509_STORE* _store)
161
161
continue ;
162
162
}
163
163
}
164
- qDebug () << " PaymentServer::LoadRootCAs : Loaded " << nRootCerts << " root certificates" ;
164
+ qWarning () << " PaymentServer::LoadRootCAs : Loaded " << nRootCerts << " root certificates" ;
165
165
166
166
// Project for another day:
167
167
// Fetch certificate revocation lists, and add them to certStore.
@@ -223,7 +223,7 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
223
223
{
224
224
// Printing to debug.log is about the best we can do here, the
225
225
// GUI hasn't started yet so we can't pop up a message box.
226
- qDebug () << " PaymentServer::ipcSendCommandLine : Payment request file does not exist: " << arg;
226
+ qWarning () << " PaymentServer::ipcSendCommandLine : Payment request file does not exist: " << arg;
227
227
}
228
228
}
229
229
return true ;
@@ -403,7 +403,7 @@ void PaymentServer::handleURIOrFile(const QString& s)
403
403
}
404
404
else
405
405
{
406
- qDebug () << " PaymentServer::handleURIOrFile : Invalid URL: " << fetchUrl;
406
+ qWarning () << " PaymentServer::handleURIOrFile : Invalid URL: " << fetchUrl;
407
407
emit message (tr (" URI handling" ),
408
408
tr (" Payment request fetch URL is invalid: %1" ).arg (fetchUrl.toString ()),
409
409
CClientUIInterface::ICON_WARNING);
@@ -476,13 +476,13 @@ bool PaymentServer::readPaymentRequest(const QString& filename, PaymentRequestPl
476
476
QFile f (filename);
477
477
if (!f.open (QIODevice::ReadOnly))
478
478
{
479
- qDebug () << " PaymentServer::readPaymentRequest : Failed to open " << filename;
479
+ qWarning () << " PaymentServer::readPaymentRequest : Failed to open " << filename;
480
480
return false ;
481
481
}
482
482
483
483
if (f.size () > MAX_PAYMENT_REQUEST_SIZE)
484
484
{
485
- qDebug () << " PaymentServer::readPaymentRequest : " << filename << " too large" ;
485
+ qWarning () << " PaymentServer::readPaymentRequest : " << filename << " too large" ;
486
486
return false ;
487
487
}
488
488
@@ -624,7 +624,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipien
624
624
else {
625
625
// This should never happen, because sending coins should have
626
626
// just unlocked the wallet and refilled the keypool.
627
- qDebug () << " PaymentServer::fetchPaymentACK : Error getting refund key, refund_to not set" ;
627
+ qWarning () << " PaymentServer::fetchPaymentACK : Error getting refund key, refund_to not set" ;
628
628
}
629
629
}
630
630
@@ -636,7 +636,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipien
636
636
}
637
637
else {
638
638
// This should never happen, either.
639
- qDebug () << " PaymentServer::fetchPaymentACK : Error serializing payment message" ;
639
+ qWarning () << " PaymentServer::fetchPaymentACK : Error serializing payment message" ;
640
640
}
641
641
}
642
642
@@ -649,7 +649,7 @@ void PaymentServer::netRequestFinished(QNetworkReply* reply)
649
649
.arg (reply->request ().url ().toString ())
650
650
.arg (reply->errorString ());
651
651
652
- qDebug () << " PaymentServer::netRequestFinished : " << msg;
652
+ qWarning () << " PaymentServer::netRequestFinished : " << msg;
653
653
emit message (tr (" Payment request error" ), msg, CClientUIInterface::MSG_ERROR);
654
654
return ;
655
655
}
@@ -663,7 +663,7 @@ void PaymentServer::netRequestFinished(QNetworkReply* reply)
663
663
SendCoinsRecipient recipient;
664
664
if (!request.parse (data))
665
665
{
666
- qDebug () << " PaymentServer::netRequestFinished : Error parsing payment request" ;
666
+ qWarning () << " PaymentServer::netRequestFinished : Error parsing payment request" ;
667
667
emit message (tr (" Payment request error" ),
668
668
tr (" Payment request can not be parsed!" ),
669
669
CClientUIInterface::MSG_ERROR);
@@ -681,7 +681,7 @@ void PaymentServer::netRequestFinished(QNetworkReply* reply)
681
681
QString msg = tr (" Bad response from server %1" )
682
682
.arg (reply->request ().url ().toString ());
683
683
684
- qDebug () << " PaymentServer::netRequestFinished : " << msg;
684
+ qWarning () << " PaymentServer::netRequestFinished : " << msg;
685
685
emit message (tr (" Payment request error" ), msg, CClientUIInterface::MSG_ERROR);
686
686
}
687
687
else
@@ -697,7 +697,7 @@ void PaymentServer::reportSslErrors(QNetworkReply* reply, const QList<QSslError>
697
697
698
698
QString errString;
699
699
foreach (const QSslError& err, errs) {
700
- qDebug () << " PaymentServer::reportSslErrors : " << err;
700
+ qWarning () << " PaymentServer::reportSslErrors : " << err;
701
701
errString += err.errorString () + " \n " ;
702
702
}
703
703
emit message (tr (" Network request error" ), errString, CClientUIInterface::MSG_ERROR);
0 commit comments