summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-11 20:24:11 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-11 20:24:11 +0000
commitfd3bd99b88393aa907f0f8000e7f6a7cf2d4a4f8 (patch)
tree142e691eaffe80196b52ba1daf6b2ce59d42b4f1
parent8f3a8ca8aa080bbf2380620b308925eaebccbbbf (diff)
parentea6a04d425d3a82f49b475681b693183b0420dae (diff)
downloadtools-studio-2022.1.1-canary.tar.gz
Change-Id: I64a914b69a745054d934c6591bcfde1bcb12ece3
-rw-r--r--google-login-plugin/src/com/google/gct/login/GoogleLoginState.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/google-login-plugin/src/com/google/gct/login/GoogleLoginState.java b/google-login-plugin/src/com/google/gct/login/GoogleLoginState.java
index eb6b073..3014180 100644
--- a/google-login-plugin/src/com/google/gct/login/GoogleLoginState.java
+++ b/google-login-plugin/src/com/google/gct/login/GoogleLoginState.java
@@ -218,7 +218,7 @@ public class GoogleLoginState {
accessTokenExpiryTime = new GregorianCalendar().getTimeInMillis() / 1000
+ authResponse.getExpiresInSeconds().longValue();
} catch (IOException e) {
- getLogger().error("Could not obtain an OAuth2 access token.", e);
+ getLogger().warn("Could not obtain an OAuth2 access token.", e);
throw e;
}
saveCredentials();
@@ -308,7 +308,7 @@ public class GoogleLoginState {
"Error while signing in",
"An error occurred while trying to sign in: " + e.getMessage()
+ ". See the error log for more details.");
- getLogger().error(
+ getLogger().warn(
"Could not sign in. Make sure that you entered the correct verification code.", e);
return false;
}
@@ -362,7 +362,7 @@ public class GoogleLoginState {
uiFacade.showErrorDialog(
"Error while signing in",
"An error occurred while trying to sign in: " + e.getMessage());
- getLogger().error("Could not sign in", e);
+ getLogger().warn("Could not sign in", e);
return false;
}
isLoggedIn = true;