Skip to content

Commit be80b6a

Browse files
committed
Logging.
1 parent 643c540 commit be80b6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/java/ch/cyberduck/core/KeychainLoginService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public void validate(final Host bookmark, final LoginCallback prompt, final Logi
5454
}
5555
}
5656
if(options.keychain) {
57+
log.debug("Lookup credentials in keychain for {}", bookmark);
5758
if(options.password) {
5859
if(StringUtils.isBlank(credentials.getPassword())) {
5960
final String password = keychain.findLoginPassword(bookmark);
@@ -92,6 +93,7 @@ public void validate(final Host bookmark, final LoginCallback prompt, final Logi
9293
}
9394
}
9495
if(!credentials.validate(bookmark.getProtocol(), options)) {
96+
log.warn("Failed validation of credentials {} with options {}", credentials, options);
9597
final CredentialsConfigurator configurator = CredentialsConfiguratorFactory.get(bookmark.getProtocol());
9698
log.debug("Auto configure credentials with {}", configurator);
9799
final Credentials configuration = configurator.configure(bookmark);
@@ -112,6 +114,7 @@ public void validate(final Host bookmark, final LoginCallback prompt, final Logi
112114
message.append(LocaleFactory.localizedString("No login credentials could be found in the Keychain", "Credentials"));
113115
this.prompt(bookmark, message.toString(), prompt, options);
114116
}
117+
log.debug("Validated credentials {} with options {}", credentials, options);
115118
}
116119

117120
/**

0 commit comments

Comments
 (0)