[git] add debug logging to capture the auth failure problem

IDEA-145083 and related
This commit is contained in:
Kirill Likhodedov
2015-10-07 17:47:22 +03:00
parent 781cdc7d08
commit 4083e4b783
@@ -510,12 +510,14 @@ public abstract class GitHandler {
public void onLineAvailable(@NonNls String line, Key outputType) {
String lowerCaseLine = line.toLowerCase();
if (lowerCaseLine.contains("authentication failed") || lowerCaseLine.contains("403 forbidden")) {
LOG.debug("auth listener: auth failure detected: " + line);
myHttpAuthFailed = true;
}
}
@Override
public void processTerminated(int exitCode) {
LOG.debug("auth listener: process terminated. auth failed=" + myHttpAuthFailed + ", cancelled=" + authenticator.wasCancelled());
if (!authenticator.wasCancelled()) {
if (myHttpAuthFailed) {
authenticator.forgetPassword();