SOme more logging.
This commit is contained in:
parent
245c0b08c3
commit
d9757f2814
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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>();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user