mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Merge pull request #1092 from nextcloud/enh/debug_not_warnings
Be less verbose with logging
This commit is contained in:
commit
0e3a8856e5
1 changed files with 8 additions and 7 deletions
|
@ -129,7 +129,7 @@ void WebFlowCredentials::askFromUser() {
|
|||
|
||||
connect(_askDialog, &WebFlowCredentialsDialog::urlCatched, this, &WebFlowCredentials::slotAskFromUserCredentialsProvided);
|
||||
|
||||
qCWarning(lcWebFlowCredentials()) << "User needs to reauth!";
|
||||
qCDebug(lcWebFlowCredentials()) << "User needs to reauth!";
|
||||
}
|
||||
|
||||
void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user, const QString &pass, const QString &host) {
|
||||
|
@ -165,9 +165,10 @@ void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user,
|
|||
|
||||
|
||||
bool WebFlowCredentials::stillValid(QNetworkReply *reply) {
|
||||
qCWarning(lcWebFlowCredentials()) << "Still valid?";
|
||||
qCWarning(lcWebFlowCredentials()) << reply->error();
|
||||
qCWarning(lcWebFlowCredentials()) << reply->errorString();
|
||||
if (reply->error() != QNetworkReply::NoError) {
|
||||
qCWarning(lcWebFlowCredentials()) << reply->error();
|
||||
qCWarning(lcWebFlowCredentials()) << reply->errorString();
|
||||
}
|
||||
return (reply->error() != QNetworkReply::AuthenticationRequiredError);
|
||||
}
|
||||
|
||||
|
@ -208,7 +209,7 @@ void WebFlowCredentials::forgetSensitiveData(){
|
|||
|
||||
const QString kck = keychainKey(_account->url().toString(), _user, _account->id());
|
||||
if (kck.isEmpty()) {
|
||||
qCWarning(lcWebFlowCredentials()) << "InvalidateToken: User is empty, bailing out!";
|
||||
qCDebug(lcWebFlowCredentials()) << "InvalidateToken: User is empty, bailing out!";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -243,7 +244,7 @@ void WebFlowCredentials::slotAuthentication(QNetworkReply *reply, QAuthenticator
|
|||
return;
|
||||
}
|
||||
|
||||
qCWarning(lcWebFlowCredentials()) << "Requires authentication";
|
||||
qCDebug(lcWebFlowCredentials()) << "Requires authentication";
|
||||
|
||||
authenticator->setUser(_user);
|
||||
authenticator->setPassword(_password);
|
||||
|
@ -296,7 +297,7 @@ void WebFlowCredentials::slotReadPasswordJobDone(Job *incomingJob) {
|
|||
_keychainMigration = false;
|
||||
persist();
|
||||
deleteOldKeychainEntries();
|
||||
qCWarning(lcWebFlowCredentials) << "Migrated old keychain entries";
|
||||
qCInfo(lcWebFlowCredentials) << "Migrated old keychain entries";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue