Changeset 49:3b8d4abd0ee6 in SMSSender


Ignore:
Timestamp:
Jan 30, 2010 11:16:58 AM (8 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@48
Message:
  • Some more debug statements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libgateway/src/business/HttpHelper.cpp

    r48 r49  
    181181
    182182        default:
    183             Http::EReadException("Unknown response code!");
     183            throw Http::EReadException("Unknown response code!");
    184184            break;
    185185    }
     
    187187
    188188void HttpHelper::httpRequestFinished(int httpRequestId, bool error) {
    189      if (request_.httpRequestId != httpRequestId)
     189     if (request_.httpRequestId != httpRequestId) {
     190         qDebug() << "Request [" + QString::number(httpRequestId) + "] finished (but is not parsed, since it is detached)";
    190191         return;
    191 
    192      requestLoop_.exit();
     192     }
     193
     194     requestLoop_.quit();
    193195
    194196     if (error) {
    195          qDebug() << "Finished request " + QString::number(httpRequestId) + " with an error: " + http_->errorString();
     197         qDebug() << "Request [" + QString::number(httpRequestId) + "] finished with an error: " + http_->errorString();
    196198         throw Http::EReadException(http_->errorString()); // TODO: Perhaps this error has to be thrown in the waitForRequest by passing a status value to requestLoop_.exit()
    197199     } else {
    198          qDebug() << "Finished request " + QString::number(httpRequestId);
     200         qDebug() << "Request [" + QString::number(httpRequestId) + "] finished";
    199201         requestResult_ = /*request.buffer.readAll()*/ http_->readAll();
    200202         //qDebug() << requestResult_;
     
    206208    while (i.hasNext()){
    207209        QSslError err = i.next();
    208         qDebug() << err.error() + " " + err.errorString();
    209     }
    210 }
     210        qDebug() << "SSL-error: " + err.errorString();
     211    }
     212}
Note: See TracChangeset for help on using the changeset viewer.