SOme more logging.

This commit is contained in:
Martin Rotter 2017-10-26 20:31:09 +02:00
parent 245c0b08c3
commit d9757f2814
2 changed files with 3 additions and 4 deletions

View File

@ -22,13 +22,12 @@ GmailServiceRoot* GmailFeed::serviceRoot() const {
}
QList<Message> GmailFeed::obtainNewMessages(bool* error_during_obtaining) {
Feed::Status error;
Feed::Status error = Feed::Status::Normal;
QList<Message> messages = serviceRoot()->network()->messages(customId(), error);
setStatus(error);
if (error == Feed::Status::NetworkError || error == Feed::Status::AuthError ||
error == Feed::Status::ParsingError) {
if (error == Feed::Status::NetworkError || error == Feed::Status::AuthError || error == Feed::Status::ParsingError) {
*error_during_obtaining = true;
}

View File

@ -127,7 +127,7 @@ QList<Message> InoreaderNetworkFactory::messages(const QString& stream_id, Feed:
loop.exec();
if (downloader.lastOutputError() != QNetworkReply::NetworkError::NoError) {
qCritical("Cannot download messages for '%s', network error.", qPrintable(stream_id));
qCritical("Cannot download messages for '%s', network error: %d.", qPrintable(stream_id), int(downloader.lastOutputError()));
error = Feed::Status::NetworkError;
return QList<Message>();
}