add a debug log for failed token refresh

This commit is contained in:
Stephen Birarda 2017-05-24 13:47:24 -07:00
parent 14ff6a06b4
commit 9cd11a32e2

View file

@ -579,6 +579,9 @@ void AccountManager::refreshAccessToken() {
QNetworkReply* requestReply = networkAccessManager.post(request, postData);
connect(requestReply, &QNetworkReply::finished, this, &AccountManager::refreshAccessTokenFinished);
connect(requestReply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(refreshAccessTokenError(QNetworkReply::NetworkError)));
} else {
qCWarning(networking) << "Cannot refresh access token without refresh token."
<< "Access token will need to be manually refreshed.";
}
}