mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] add debug logging to capture the auth failure problem
IDEA-145083 and related
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user